NAME

dtRdr::Logger::Appender::WxMessageBox - Display error in Wx::MessageBox

SYNOPSIS

use dtRdr::Logger::Appender::WxMessageBox;

my $app = dtRdr::Logger::Appender::WxMessageBox->new(
    style => wxICON_ERROR,
    title => 'Error',
    instruct => 'Press OK to Continue',
    die => 0,
);

$file->log(message => "Log me\n");

DESCRIPTION

This is a simple appender for displaying a Wx Message Dialog.

see: http://www.wxwindows.org/manuals/2.6.3/wx_dialogfunctions.html#wxmessagebox

The constructor new() take optional parameters

style

The dialog style, may be of type:

wxYES_NO, wxCANCEL, wxOK, wxICON_EXCLAMATION, wxICON_HAND, wxICON_ERROR, wxICON_QUESTION, wxICON_INFORMATION

title

The title to appear in the title bar

instruct

Additional User instructions to place over the Buttons. If die is set to true you should set this to something like

"The application will now terminate"

parent

The parent widget for the dialog - currently defaults to the top level application window

auto_style

Boolean - Sets the Dialog style, title, and instruct message based on the Error Level.

Design and implementation of this module has been greatly inspired by Dave Rolsky's Log::Dispatch appender framework.

AUTHOR

Gary Varnell <gvarnell@osoft.com>, Copyright 2006

COPYRIGHT

Copyright (C) 2006 OSoft, All Rights Reserved.

NO WARRANTY

Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatseover. You have been warned.

LICENSE

GPL