Zing::Journal - System Journal
Central System Journal
use Zing::Journal; my $journal = Zing::Journal->new; # $journal->recv;
This package provides the default central mechanism for creating and retrieving process event logs.
This package inherits behaviors from:
Zing::Channel
This package uses type constraints from:
Zing::Types
This package has the following attributes:
level(Str)
This attribute is read-only, accepts (Str) values, and is optional.
(Str)
name(Str)
tap(Bool)
This attribute is read-write, accepts (Bool) values, and is optional.
(Bool)
verbose(Bool)
This attribute is read-only, accepts (Bool) values, and is optional.
This package implements the following methods:
stream(CodeRef $callback) : Object
The stream method taps the process event log and executes the provided callback for each new event.
# given: synopsis my $example = { from => '...', data => {logs => {}}, }; for (1..5) { $journal->send($example); } $journal->stream(sub { my ($info, $data, $lines) = @_; $journal->tap(0); # stop });
term() : Str
The term method returns the name of the journal.
# given: synopsis $journal->term;
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Zing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zing
CPAN shell
perl -MCPAN -e shell install Zing
For more information on module installation, please visit the detailed CPAN module installation guide.