git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@413
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// NB: the string is not copied, so it's lifetime must be long enough!
void SetTimeStampFormat(const char *szTF) { m_szTimeFormat = szTF; }
// trace mask (see wxTraceXXX constants for details)
// NB: the string is not copied, so it's lifetime must be long enough!
void SetTimeStampFormat(const char *szTF) { m_szTimeFormat = szTF; }
// trace mask (see wxTraceXXX constants for details)
- void SetTraceMask(wxTraceMask ulMask) { m_ulTraceMask = ulMask; }
+ static void SetTraceMask(wxTraceMask ulMask) { ms_ulTraceMask = ulMask; }
// accessors
// gets the verbose status
// accessors
// gets the verbose status
// get current time format
const char *GetTimeStampFormat() const { return m_szTimeFormat; }
// get trace mask
// get current time format
const char *GetTimeStampFormat() const { return m_szTimeFormat; }
// get trace mask
- wxTraceMask GetTraceMask() const { return m_ulTraceMask; }
+ static wxTraceMask GetTraceMask() { return ms_ulTraceMask; }
// make dtor virtual for all derived classes
virtual ~wxLog() { }
// make dtor virtual for all derived classes
virtual ~wxLog() { }
bool m_bVerbose; // FALSE => ignore LogInfo messages
const char *m_szTimeFormat; // format for strftime()
bool m_bVerbose; // FALSE => ignore LogInfo messages
const char *m_szTimeFormat; // format for strftime()
- wxTraceMask m_ulTraceMask; // controls wxLogTrace behaviour
// the logging functions that can be overriden
// default DoLog() prepends the time stamp and a prefix corresponding
// the logging functions that can be overriden
// default DoLog() prepends the time stamp and a prefix corresponding
private:
// static variables
// ----------------
private:
// static variables
// ----------------
- static wxLog *ms_pLogger; // currently active log sink
- static bool ms_bInitialized; // any log targets created?
+ static wxLog *ms_pLogger; // currently active log sink
+ static bool ms_bInitialized; // any log targets created?
+ static wxTraceMask ms_ulTraceMask; // controls wxLogTrace behaviour
};
// ----------------------------------------------------------------------------
};
// ----------------------------------------------------------------------------