Lucas Theisen > IPC-Open3-Callback > IPC::Open3::Callback::Logger

Download:
IPC-Open3-Callback-1.14.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 1.14   Source  

NAME ^

IPC::Open3::Callback::Logger - A logger for when Log4perl is not available

VERSION ^

version 1.14

SYNOPSIS ^

  use IPC::Open3::Callback;
  use IPC::Open3::Callback::Logger;
  
  # warn and above log messages will be written to std out
  IPC::Open3::Callback::Logger->set_level( 'warn' );

  my $runner = IPC::Open3::Callback->new();
  my $exit_code = $runner->run_command( 'echo Hello World' );

DESCRIPTION ^

This provides a very basic logger for when Log4perl is not available.

METHODS ^

get_logger()

Returns the logger instance.

set_level( $level )

Sets the log level to one of:

  all
  trace
  debug
  info
  warn
  error
  fatal
  off

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Lucas Theisen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

SEE ALSO ^

Please see those modules/websites for more information related to this module.

syntax highlighting: