Maroš Kollár > Games-Lacuna-Task > Games::Lacuna::Task::Role::Logger

Download:
Games-Lacuna-Task-2.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Games::Lacuna::Role::Logger - Prints log messages

ACCESSORS ^

loglevel

Specify the loglevel. Will print all log messages equal or above the given level if running in an interactive shell.

METHODS ^

log

Print a log message. You can use the sprintf syntax.

 $self->log($loglevel,$message,@sprintf_params);

abort

Dies with a pretty error message

 $self->abort($message,@sprintf_params);
syntax highlighting: