NAME
Plasp::Log - Logging class for Plasp
SYNOPSIS
package Plasp;
has 'log' => (
default => { Plasp::Log->new( asp => shift ) }
);
1;
DESCRIPTION
A class to define logger functions. Essentially send every message to logger although prepends log level
ATTRIBUTES
METHODS
- $log->debug( $message, %context_values )
-
Add debug log messages into log and prints to logger
- $log->info( $message, %context_values )
-
Add info log messages into log and prints to logger
- $log->warn( $message, %context_values )
-
Add warn log messages into log and prints to logger
- $log->error( $message, %context_values )
-
Add error log messages into log and prints to logger
- $log->fatal( $message, %context_values )
-
Add fatal log messages into log and prints to logger