/**
Destroys the previous log target.
*/
- ~wxLogChain();
+ virtual ~wxLogChain();
/**
Detaches the old log target so it won't be destroyed when the wxLogChain object
Constructs a log target which sends all the log messages to the given
@c FILE. If it is @NULL, the messages are sent to @c stderr.
*/
- wxLogStderr(FILE fp = NULL);
+ wxLogStderr(FILE* fp = NULL);
};
Constructs a log target which sends all the log messages to the given text
control. The @a textctrl parameter cannot be @NULL.
*/
- wxLogTextCtrl(wxTextCtrl textctrl);
+ wxLogTextCtrl(wxTextCtrl* pTextCtrl);
};
you may not even know about its existence.
@section overview_wxLog_deriving Deriving your own log target
-
+
There are two functions which must be implemented by any derived class to
actually process the log messages: DoLog() and
DoLogString(). The second function receives a string
current mask while a message using string mask will be logged simply if the
mask had been added before to the list of allowed ones.
For example,
-
+
@code
wxLogTrace( wxTraceRefCount|wxTraceOleCalls, "Active object ref count: %d", nRef );
@endcode
@code
wxLogTrace( wxTRACE_OleCalls, "IFoo::Bar() called" );
@endcode
-
+
will log the message if it was preceded by
-
+
@code
wxLog::AddTraceMask( wxTRACE_OleCalls);
@endcode
default because otherwise it would be impossible to directly go to the line
from which the log message was generated by simply clicking in the debugger
window on the corresponding error message. If you wish to enable it, please
- use SetTimestamp() explicitly.
-
+ use SetTimestamp() explicitly.
+
@section overview_wxLog_Target Manipulating the log target
The functions in this section work with and manipulate the active log
Disables time stamping of the log messages.
This function is new since wxWidgets version 2.9
*/
- void SetTimestamp(const wxString& format);
+ static void SetTimestamp(const wxString& format);
/**
Called to process the message of the specified severity. @a msg is the text
/**
Returns @true if the @a mask is one of allowed masks for
wxLogTrace().
-
+
See also: AddTraceMask(), RemoveTraceMask()
*/
static bool IsAllowedTraceMask(const wxString& mask);