NetLogger - A module that provides tools to generate NetLogger formatted messages for log4perl
For more information on NetLogger see: http://dsd.lbl.gov/NetLoggerWiki/index.php/Main_Page
The API of NetLogger is used to format log messages in the NetLogger 'Best Practices' format. See: http://www.cedps.net/wiki/index.php/LoggingBestPractices
Sample use:
use Log::Log4perl qw(:easy); use NetLogger; Log::Log4perl->easy_init($DEBUG); my $logger = get_logger("my_prog"); $logger->info(NetLogger::format("org.perfsonar.client.parseResults.start")); # call function here $logger->info(NetLogger::format("org.perfsonar.client.parseResults.end", {val=>12,}));
This will generate a log that looks like this:
2007/12/19 13:51:26 39899 INFO> myprog:NN main:: - ts=2007-12-19T21:51:26.030823Z \ event=org.perfsonar.client.runQuery1.end guid=736ee764-ae7c-11dc-9f7d-000f1f6ed15d
Dan Gunter, dkgunter@lbl.gov
See: http://dsd.lbl.gov/NetLoggerWiki/index.php/Licensing
Copyright (c) 2004-2007, Lawrenence Berkeley National Lab and the University of California All rights reserved.
To install perfSONAR_PS::Time, copy and paste the appropriate command in to your terminal.
cpanm
cpanm perfSONAR_PS::Time
CPAN shell
perl -MCPAN -e shell install perfSONAR_PS::Time
For more information on module installation, please visit the detailed CPAN module installation guide.