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

$log->level

Set or get the currently configured log level

$log->entries

An array ref of log entries

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