NAME

OPM::Installer::Logger - A simple logger for OPM::Installer

VERSION

version 1.0.1

SYNOPSIS

use OPM::Installer::Logger;

my $logger = OPM::Installer::Logger->new; # creates a new temporary file

# or
my $logger = OPM::Installer::Logger->new(
    path => 'my_installer.log',
);

$logger->debug( message => 'message' );
$logger->error( type => 'cpan', message => 'Cannot install module' );
$logger->notice( message => 'test' );
$logger->info( any_key => 'a value' );
$logger->warn( module => 'test', text => 'a warning' );
  • BUILD

ATTRIBUTES

  • log

METHODS

debug

info

warn

error

notice

print

AUTHOR

Renee Baecker <reneeb@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2018 by Renee Baecker.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)