Log::CSVLogger
$csvlogger = Log::CSVLogger->new("path/to/log.csv"); $csvlogger->debug("Debug Message1","Debug Message2"); $csvlogger->error("Error Message1","Error Message2");
Log to a file in CSV format.
It accepts csv file path as a arguement.
$csvlogger = Log::CSVLogger->new("path/to/log.csv");
If the file does not exist it will create it for you.
This method will print a debug message.
$csvlogger->debug("Debug Message1","Debug Message2"); timestamp,debug,Debug Message1,Debug Message2,...,Debug MessageN
This method will print an info message.
$csvlogger->info("Info Message1","Info Message2");
This method will print a warn message.
$csvlogger->warn("Warn Message1","Warn Message2");
This method will print an error message.
$csvlogger->error("Error Message1","Error Message2");
In case you want to access log function, this method will print a log message with timestamp and passed arguements.
$csvlogger->log("Log Message1","Log Message2");
Gaurav Khambhala ( gaurav at deeproot dot co dot in )
Terence Monteiro
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 or any later version. See http://www.fsf.org/licensing/licenses/gpl.html
To install Log::CSVLogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::CSVLogger
CPAN shell
perl -MCPAN -e shell install Log::CSVLogger
For more information on module installation, please visit the detailed CPAN module installation guide.