Log::Dispatch::Atom 0.03
Sponsored Links
Log::Dispatch::Atom 0.03 Ranking & Summary
File size:
0.007 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
987
Date added:
2007-02-09
Publisher:
Dominic Mitchell
Log::Dispatch::Atom 0.03 description
Log::Dispatch::Atom is a Perl module to log to an atom feed.
SYNOPSIS
use Log::Dispatch::Atom;
my $log = Log::Dispatch::Atom->new(
name => foo,
min_level => debug,
file => file.atom
);
$log->log_message( level => error, message => A problem happened );
$log->log_message( level => debug, message => Got Here );
This class implements logging backed by an Atom feed so that you can subscribe to the errors produced by your application.
You should not use this object directly, but should manage it via a Log::Dispatch object.
IMPLEMENTATION NOTES
In order to safely write to the log file, the entire file must be locked each time that an entry is logged. This probably makes it unsuitable for high volume log files.
The log file is opened and closed on each call to log_message().
METHODS
new()
Takes a hash of arguments. Returns a new Log::Dispatch::Atom object. The following parameters are used:
name [mandatory]
The name of the logging object.
min_level [mandatory]
The minimum logging level this object will accept. See Log::Dispatch for more information.
max_level [optional]
The maximum logging level this object will accept. See Log::Dispatch for more information. The default is the highest possible level (ie: no maximum).
file [mandatory]
Specifies the location of the file to read/write the feed from.
feed_id [optional]
Specifies the identity of the feed itself. Normally, this should be set to the published URI of the feed.
If not specified, it will be omitted, which is in violation of the Atom specification. For more information, see http://www.atomenabled.org/developers/syndication/#requiredFeedElements.
feed_title [optional]
The title of the feed. This should probably be set to the name of your application.
If not specified, it will be omitted, which is in violation of the Atom specification. For more information, see http://www.atomenabled.org/developers/syndication/#requiredFeedElements.
XXX This should probably just use the name parameter. What do you think? Let me know.
feed_author [optional]
The author details of a feed. This is specified as a hash reference, which must contain one or more of the three keys name, email and uri.
In order to create a valid Atom feed, you must either supply an author in every single entry (log message), or ensure that the feed itself has an author. The latter is probably the easier solution, so I recommend this parameter be supplied.
NB: The feed_* parameters will only be used when a new feed is being created. If you are creating a new object for an existing feed, they will be ignored.
log_message()
Takes a hash of arguments. Has no return value. The following parameters are used.
message [mandatory]
The actual log message.
level [mandatory]
The level of the message. See Log::Dispatch for a full list.
id [optional]
Each entry requires an id in order for the feed as a whole to be a valid Atom document. Its used by readers of Atom documents to determine whether or not an entry has been seen previously.
If not specified, this will default to an URL comprising the current time plus the pid plus the hostname plus a monotonically increasing integer. eg: tag:fred.example.com,2005-12-07:1133946771/20827/2. This should be good enough for a uniqueness test.
author [optional]
You can specify author details for an individual entry if desired. The author parameter is expected to be a hash reference, which must contain one or more of the keys name, email or uri.
SYNOPSIS
use Log::Dispatch::Atom;
my $log = Log::Dispatch::Atom->new(
name => foo,
min_level => debug,
file => file.atom
);
$log->log_message( level => error, message => A problem happened );
$log->log_message( level => debug, message => Got Here );
This class implements logging backed by an Atom feed so that you can subscribe to the errors produced by your application.
You should not use this object directly, but should manage it via a Log::Dispatch object.
IMPLEMENTATION NOTES
In order to safely write to the log file, the entire file must be locked each time that an entry is logged. This probably makes it unsuitable for high volume log files.
The log file is opened and closed on each call to log_message().
METHODS
new()
Takes a hash of arguments. Returns a new Log::Dispatch::Atom object. The following parameters are used:
name [mandatory]
The name of the logging object.
min_level [mandatory]
The minimum logging level this object will accept. See Log::Dispatch for more information.
max_level [optional]
The maximum logging level this object will accept. See Log::Dispatch for more information. The default is the highest possible level (ie: no maximum).
file [mandatory]
Specifies the location of the file to read/write the feed from.
feed_id [optional]
Specifies the identity of the feed itself. Normally, this should be set to the published URI of the feed.
If not specified, it will be omitted, which is in violation of the Atom specification. For more information, see http://www.atomenabled.org/developers/syndication/#requiredFeedElements.
feed_title [optional]
The title of the feed. This should probably be set to the name of your application.
If not specified, it will be omitted, which is in violation of the Atom specification. For more information, see http://www.atomenabled.org/developers/syndication/#requiredFeedElements.
XXX This should probably just use the name parameter. What do you think? Let me know.
feed_author [optional]
The author details of a feed. This is specified as a hash reference, which must contain one or more of the three keys name, email and uri.
In order to create a valid Atom feed, you must either supply an author in every single entry (log message), or ensure that the feed itself has an author. The latter is probably the easier solution, so I recommend this parameter be supplied.
NB: The feed_* parameters will only be used when a new feed is being created. If you are creating a new object for an existing feed, they will be ignored.
log_message()
Takes a hash of arguments. Has no return value. The following parameters are used.
message [mandatory]
The actual log message.
level [mandatory]
The level of the message. See Log::Dispatch for a full list.
id [optional]
Each entry requires an id in order for the feed as a whole to be a valid Atom document. Its used by readers of Atom documents to determine whether or not an entry has been seen previously.
If not specified, this will default to an URL comprising the current time plus the pid plus the hostname plus a monotonically increasing integer. eg: tag:fred.example.com,2005-12-07:1133946771/20827/2. This should be good enough for a uniqueness test.
author [optional]
You can specify author details for an individual entry if desired. The author parameter is expected to be a hash reference, which must contain one or more of the keys name, email or uri.
Log::Dispatch::Atom 0.03 Screenshot
Log::Dispatch::Atom 0.03 Keywords
Atom 0.03
See Log
for more information
Atom feed
to log
Perl module
more information
For More
feed
log
level
message
atom
object
Log::Dispatch::Atom
LogDispatchAtom
Bookmark Log::Dispatch::Atom 0.03
Log::Dispatch::Atom 0.03 Copyright
WareSeeker periodically updates pricing and software information of Log::Dispatch::Atom 0.03 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Log::Dispatch::Atom 0.03 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
for more information visit
atom feeds aggregator
atom feed reader
for more information contact
levelupgames
message doesn't exist
atom feeds
for more information about this error navigate to the report server on the local server machine
level up games
text message
atom feed example
message center
levelor blinds
for more information please contact
kinja atom feed
atomica
feedback two gapfeedback
message envy
Related Software
Log::Dispatch::ToTk provides class to redirect Log::Dispatch to Tk widgets. Free Download
Log::Dispatch::Config is a Log4j for Perl. Free Download
Log::Dispatch::TkText provides a Text widget for Log::Dispatch. Free Download
Log::Dispatch::File::Alerts is a Perl object for logging to alert files. Free Download
Log::Dispatch::File::Rolling is a Perl object for logging to date/time/pid stamped files. Free Download
Iterator::Misc Perl module package contains miscellaneous iterator functions. Free Download
Math::ODE Perl module allows you to solve N-th Order Ordinary Differential Equations with as little pain as possible. Free Download
Device::TNC is a Perl module that acts like a generic interface to a TNC. Free Download
Latest Software
Popular Software
Favourite Software