|
golib
0.5
|
Logging facility. More...
#include <golog.h>
Static Public Member Functions | |
| static void | message (const goString &, const goObjectBase *caller=NULL) |
| Write a message to the log. More... | |
| static void | warning (const goString &, const goObjectBase *caller=NULL) |
| Write a warning message to the log. More... | |
| static void | error (const goString &, const goObjectBase *caller=NULL) |
| Write an error message to the log. More... | |
| static void | logFile (const goString &) |
| Close the old logfile and open a new one. More... | |
| static void | logConsole () |
| static void | on () |
| Turn on logging - no effect yet. | |
| static void | off () |
| Turn off logging - no effect yet, logging is always on. | |
Logging facility.
This class enables you to write messages to a log file (golib.log), which is created every time a golib program is called.
|
static |
Write an error message to the log.
| s | Message. |
| caller | Refering object. Can be null. |
|
static |
Close the old logfile and open a new one.
| fn | Filename. |
|
static |
Write a message to the log.
| s | Message. |
| caller | Refering object. Can be null. |
|
static |
Write a warning message to the log.
| s | Message. |
| caller | Refering object. Can be null. |