GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.LogBuffer
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.LogBuffer — wxPython 4.3.2 Docs

phoenix_title wx.LogBuffer¶

wx.LogBuffer is a very simple implementation of log sink which simply collects all the logged messages in a string (except the debug messages which are output in the usual way immediately as we’re presumably not interested in collecting them for later).

The messages from different log function calls are separated by the new lines.

All the messages collected so far can be shown to the user (and the current buffer cleared) by calling the overloaded wx.LogBuffer.Flush method.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class LogBuffer:

Inheritance diagram of LogBuffer


method_summary Methods Summary¶

__init__

The default constructor does nothing.

Clear

Clear all the messages in the buffer.

Flush

Shows all the messages collected so far to the user (using a message box in the GUI applications or by printing them out to the console in text mode) and clears the internal buffer.

GetBuffer

Returns the current buffer contains.


property_summary Properties Summary¶

Buffer

See GetBuffer


api Class API¶

class wx.LogBuffer(Log)¶

Possible constructors:

LogBuffer() -> None

LogBuffer is a very simple implementation of log sink which simply collects all the logged messages in a string (except the debug messages which are output in the usual way immediately as we’re presumably not interested in collecting them for later).


Methods¶

__init__(self)¶

The default constructor does nothing.

Return type:

None



Clear(self)¶

Clear all the messages in the buffer.

This can be done to prevent them from being flushed by the next call to Flush , which happens implicitly if this logger ceases to be the active logger after a call to wx.Log.SetActiveTarget with a different log target.

Return type:

None

Added in version 4.3/wxWidgets-3.3.0.



Flush(self)¶

Shows all the messages collected so far to the user (using a message box in the GUI applications or by printing them out to the console in text mode) and clears the internal buffer.

Return type:

None



GetBuffer(self)¶

Returns the current buffer contains.

Messages from different log function calls are separated with the new lines in the buffer. The buffer can be cleared by Flush which will also show the current contents to the user.

Return type:

str


Properties¶

Buffer¶

See GetBuffer

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.