Game::TextMapper::Log - a log singleton
use Game::TextMapper::Log; my $log = Game::TextMapper::Log->get(); $log->debug("Test");
This allows multiple modules to use the same logger. If the log level or path are changed by one of them, the change affects all the modules since they share the same logger instance.
This uses Mojo::Log.
Mojo::Log
To install Game::TextMapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Game::TextMapper
CPAN shell
perl -MCPAN -e shell install Game::TextMapper
For more information on module installation, please visit the detailed CPAN module installation guide.