Wx::LogMessage

From WxPerl wiki

Revision as of 12:56, 26 June 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

At Startup all messages will be send to STDOUT.

To use the WxWidgets Log with a TextControl:

my $LOG = Wx::LogTextCtrl->new($HandleToATextCtrl);

If you want to log on the TextCtrl and STDOUT:

Wx::LogChain->new($LOG);# > txtLog > STDOUT

Or just the TextCtrl:

Wx::Log::SetActiveTarget($LOG);

Then you can use these to log messages:

Wx::LogMessage("Log started");
Wx::LogDebug("Debug?");# Didnt do anything ?
carp("That is a carp message.");

Btw: Does anyone knows how I can log debug messages ?

Google AdSense