Mattia Barbon > Log-Dispatch-Wx-0.01 > Log::Dispatch::Wx

Download:
Log-Dispatch-Wx-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source  

NAME ^

Log::Dispatch::Wx - Object for logging through Wx::Log*

SYNOPSIS ^

  use Log::Dispatch::Wx;

  my $file = Log::Dispatch::Wx->new( name      => 'file1',
                                     min_level => 'info',
                                     );

  $file->log( level   => 'warning',
              message => "I've fallen but I am getting up\n" );

DESCRIPTION ^

This module provides a simple object for logging to wxLog under the Log::Dispatch::* system.

METHODS ^

NOTES ^

The logging levels used by Log::Dispatch are more fine-grained than what is offered by the wxWidgets log facility. The following mapping is used to determine which wxWidgets log function must be called:

    debug      Wx::LogDebug
    info       Wx::LogMessage
    notice         "
    warning    Wx::LogWarning
    error      Wx::LogError
    critical       "
    alert          "
    emergency      "

AUTHOR ^

Mattia Barbon <mbarbon@cpan.org>

LICENSE ^

Copyright (c) 2006 Mattia Barbon <mbarbon@cpan.org>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself