[wxPython] wxLog(Window)

Good afternoon everyone,

The following code:

logger = wxLogWindow(self, "LOG", 1, 0)
wxLog_SetActiveTarget(logger)

wxLogError("wxLogError")
wxLogWarning("wxLogWarning")
wxLogVerbose("wxLogVerbose")

does something weird (or I don't completely understand logging):

- wxLogError/wxLogWarning: these work fine.

- wxLogVerbose: this doesn't show up in the 'logger'-window at all. Do I
have to set the log level or something for this to work?

Thanks!

···

--
Alexander Deruwe
AQS-CarControl

..snip..

[wxGTK 2.2.9, wxPython 2.2.9.2, both from debian unstable]

I don't like to reply to myself, but I forgot to mention wxLogTrace (and
my wxGTK and wxPython versions). Is wxLogTrace present in my version of
wxPython? I could not find anything, except for the 'trace mask' stuff.

Thanks some more :slight_smile:

···

On Wed, Jun 26, 2002 at 03:53:56PM +0200, Alexander Deruwe wrote:

--
Alexander Deruwe
AQS-CarControl

- wxLogVerbose: this doesn't show up in the 'logger'-window at all. Do I
have to set the log level or something for this to work?

wxLog_SetVerbose(true)

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

[wxGTK 2.2.9, wxPython 2.2.9.2, both from debian unstable]

I don't like to reply to myself, but I forgot to mention wxLogTrace (and
my wxGTK and wxPython versions). Is wxLogTrace present in my version of
wxPython? I could not find anything, except for the 'trace mask' stuff.

No, it got left out. I'll add them for 2.3.3, but note that they will do
nothing in the release build of wxPython. It will only have a C++
implementaion in the hybrid or debug builds.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!