Gaurav Khambhala > Log-CSVLogger-0.1 > Log::CSVLogger

Download:
Log-CSVLogger-0.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.1   Source  

NAME ^

Log::CSVLogger

SYNOPSIS ^

    $csvlogger = Log::CSVLogger->new("path/to/log.csv");
    
    $csvlogger->debug("Debug Message1","Debug Message2");
    
    $csvlogger->error("Error Message1","Error Message2");

DESCRIPTION ^

Log to a file in CSV format.

METHODS ^

new

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.

debug

This method will print a debug message.

    $csvlogger->debug("Debug Message1","Debug Message2");

    timestamp,debug,Debug Message1,Debug Message2,...,Debug MessageN

info

This method will print an info message.

    $csvlogger->info("Info Message1","Info Message2");

warn

This method will print a warn message.

    $csvlogger->warn("Warn Message1","Warn Message2");

error

This method will print an error message.

    $csvlogger->error("Error Message1","Error Message2");

log

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");

AUTHOR ^

Gaurav Khambhala ( gaurav at deeproot dot co dot in )

CREDITS ^

Terence Monteiro

LICENSE ^

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

syntax highlighting: