Class: Wx::LogBuffer

Inherits:
Log
  • Object
show all
Defined in:
lib/wx/doc/gen/log.rb

Overview

Note:

This class is untracked and should not be derived from nor instances extended!

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 #flush method.

Category: Logging

Requires:

  • USE_LOG

Instance Method Summary collapse

Methods inherited from Log

add_trace_mask, clear_trace_masks, disable_timestamp, #do_log_record, #do_log_text, #do_log_text_at_level, dont_create_on_demand, enable_logging, #flush, flush_active, for_component, get_active_target, get_log_level, get_repetition_counting, get_timestamp, get_trace_masks, get_verbose, is_allowed_trace_mask, is_enabled, is_level_enabled, #log_record, remove_trace_mask, resume, set_active_target, set_component_level, set_log_level, set_repetition_counting, set_timestamp, set_verbose, suspend

Constructor Details

#initializeWx::LogBuffer

The default ctor does nothing.



340
# File 'lib/wx/doc/gen/log.rb', line 340

def initialize; end

Instance Method Details

#get_bufferWx::String Also known as: buffer

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 Wx::Log#flush which will also show the current contents to the user.

Returns:

  • (Wx::String)


346
# File 'lib/wx/doc/gen/log.rb', line 346

def get_buffer; end