Version: 3.3.0
wxLogFormatterNone Class Reference

#include <wx/log.h>

+ Inheritance diagram for wxLogFormatterNone:

Detailed Description

Specialized formatter not formatting the messages at all.

This class can be used to make wxLog log just the messages themselves, without any time stamps or prefixes indicating their severity.

Example of using it:

delete logger->SetFormatter(new wxLogFormatterNone{});
// Log messages won't have time stamps or "Error:", "Warning:" etc
// prefixes any more.
Specialized formatter not formatting the messages at all.
Definition: log.h:220
wxLog class defines the interface for the log targets used by wxWidgets logging functions as explaine...
Definition: log.h:248
wxLogFormatter * SetFormatter(wxLogFormatter *formatter)
Sets the specified formatter as the active one.
static wxLog * GetActiveTarget()
Returns the pointer to the active log target (may be nullptr).
Since
3.3.0

Public Member Functions

 wxLogFormatterNone ()
 Trivial default constructor. More...
 
- Public Member Functions inherited from wxLogFormatter
 wxLogFormatter ()
 The default ctor does nothing. More...
 
virtual wxString Format (wxLogLevel level, const wxString &msg, const wxLogRecordInfo &info) const
 This function creates the full log message string. More...
 

Additional Inherited Members

- Protected Member Functions inherited from wxLogFormatter
virtual wxString FormatTimeMS (wxLongLong_t msec) const
 This function formats the time stamp part of the log message including milliseconds. More...
 
virtual wxString FormatTime (time_t time) const
 This function formats the time stamp part of the log message. More...
 

Constructor & Destructor Documentation

◆ wxLogFormatterNone()

wxLogFormatterNone::wxLogFormatterNone ( )

Trivial default constructor.