]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/protocol/log.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/protocol/log.h
3 // Purpose: interface of wxProtocolLog
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
12 Class allowing to log network operations performed by wxProtocol.
23 Create object doing the logging using wxLogTrace() with the specified
26 If you override DoLogString() in your class the @a traceMask may be
27 left empty but it must have a valid value if you rely on the default
28 DoLogString() implementation.
30 wxProtocolLog(const wxString
& traceMask
);
33 Called by wxProtocol-derived objects to log strings sent to the server.
35 Default implementation prepends a client-to-server marker to @a str and
38 virtual void LogRequest(const wxString
& str
);
41 Called by wxProtocol-derived objects to log strings received from the
44 Default implementation prepends a server-to-client marker to @a str and
47 virtual void LogResponse(const wxString
& str
);
53 This function is called from LogRequest() and LogResponse() and by
54 default uses wxLogTrace() with the trace mask specified in the
55 constructor but can be overridden to do something different by the
58 virtual void DoLogString(const wxString
& str
);