minor formatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -373,7 +373,7 @@ public:
|
|||||||
See @ref overview_wxlogoverview "log overview" for the descriptions of wxWidgets
|
See @ref overview_wxlogoverview "log overview" for the descriptions of wxWidgets
|
||||||
logging facilities.
|
logging facilities.
|
||||||
|
|
||||||
@section overview_wxLog_Trace_Masks Deriving your own log target
|
@section overview_wxLog_deriving Deriving your own log target
|
||||||
|
|
||||||
There are two functions which must be implemented by any derived class to
|
There are two functions which must be implemented by any derived class to
|
||||||
actually process the log messages: DoLog() and
|
actually process the log messages: DoLog() and
|
||||||
@@ -417,20 +417,20 @@ public:
|
|||||||
mask had been added before to the list of allowed ones.
|
mask had been added before to the list of allowed ones.
|
||||||
For example,
|
For example,
|
||||||
|
|
||||||
@begincode
|
@code
|
||||||
wxLogTrace( wxTraceRefCount|wxTraceOleCalls, "Active object ref count: %d", nRef );
|
wxLogTrace( wxTraceRefCount|wxTraceOleCalls, "Active object ref count: %d", nRef );
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
will do something only if the current trace mask contains both
|
will do something only if the current trace mask contains both
|
||||||
@c wxTraceRefCount and @c wxTraceOle, but
|
@c wxTraceRefCount and @c wxTraceOle, but
|
||||||
|
|
||||||
@begincode
|
@code
|
||||||
wxLogTrace( wxTRACE_OleCalls, "IFoo::Bar() called" );
|
wxLogTrace( wxTRACE_OleCalls, "IFoo::Bar() called" );
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
will log the message if it was preceded by
|
will log the message if it was preceded by
|
||||||
|
|
||||||
@begincode
|
@code
|
||||||
wxLog::AddTraceMask( wxTRACE_OleCalls);
|
wxLog::AddTraceMask( wxTRACE_OleCalls);
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
@@ -446,11 +446,7 @@ public:
|
|||||||
"[%d/%b/%y %H:%M:%S] " which gives something like "[17/Sep/98 22:10:16] "
|
"[%d/%b/%y %H:%M:%S] " which gives something like "[17/Sep/98 22:10:16] "
|
||||||
(without quotes) for the current date. Setting an empty string as the time
|
(without quotes) for the current date. Setting an empty string as the time
|
||||||
format disables timestamping of the messages completely.
|
format disables timestamping of the messages completely.
|
||||||
@note Timestamping is disabled for Visual C++ users in debug builds by
|
See also
|
||||||
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. See also
|
|
||||||
@li AddTraceMask()
|
@li AddTraceMask()
|
||||||
@li RemoveTraceMask()
|
@li RemoveTraceMask()
|
||||||
@li ClearTraceMasks()
|
@li ClearTraceMasks()
|
||||||
@@ -465,6 +461,12 @@ public:
|
|||||||
@li SetRepetitionCounting()
|
@li SetRepetitionCounting()
|
||||||
@li GetRepetitionCounting()
|
@li GetRepetitionCounting()
|
||||||
|
|
||||||
|
@note Timestamping is disabled for Visual C++ users in debug builds by
|
||||||
|
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.
|
||||||
|
|
||||||
@section overview_wxLog_Target Manipulating the log target
|
@section overview_wxLog_Target Manipulating the log target
|
||||||
|
|
||||||
The functions in this section work with and manipulate the active log
|
The functions in this section work with and manipulate the active log
|
||||||
|
Reference in New Issue
Block a user