\membersection{wxLog::SetTimestamp}\label{wxlogsettimestamp}
-\func{void}{SetTimestamp}{\param{const char * }{ format}}
+\func{void}{SetTimestamp}{\param{const wxStrgin\&}{ format}}
Sets the timestamp format prepended by the default log targets to all
messages. The string may contain any normal characters as well as \%
\membersection{wxLog::GetTimestamp}\label{wxloggettimestamp}
-\constfunc{const char *}{GetTimestamp}{\void}
+\constfunc{const wxString\&}{GetTimestamp}{\void}
Returns the current timestamp format string.
// sets the timestamp string: this is used as strftime() format string
// for the log targets which add time stamps to the messages - set it
// to NULL to disable time stamping completely.
- static void SetTimestamp(const wxChar *ts) { ms_timestamp = ts; }
+ static void SetTimestamp(const wxString& ts) { ms_timestamp = ts; }
// accessors
static wxLogLevel GetLogLevel() { return ms_logLevel; }
// get the current timestamp format string (may be NULL)
- static const wxChar *GetTimestamp() { return ms_timestamp; }
+ static const wxString& GetTimestamp() { return ms_timestamp; }
// helpers
// format string for strftime(), if NULL, time stamping log messages is
// disabled
- static const wxChar *ms_timestamp;
+ static wxString ms_timestamp;
static wxTraceMask ms_ulTraceMask; // controls wxLogTrace behaviour
static wxArrayString ms_aTraceMasks; // more powerful filter for wxLogTrace
size_t wxLog::ms_suspendCount = 0;
-const wxChar *wxLog::ms_timestamp = wxT("%X"); // time only, no date
+wxString wxLog::ms_timestamp(wxT("%X")); // time only, no date
wxTraceMask wxLog::ms_ulTraceMask = (wxTraceMask)0;
wxArrayString wxLog::ms_aTraceMasks;