#include <dblog.h>
Static Public Methods | |
| void | StartLogging (const LookString &theFileName="") |
| Start logging. More... | |
| void | StopLogging (void) |
| Stop logging. | |
| void | Log (LookString theString) |
| Log a string. More... | |
| void | Log (const char *fmt,...) |
| Varargs version of logging. More... | |
| void | TimeLog (LookString theString) |
| void | TimeLog (const char *fmt,...) |
| void | TimeStart (void) |
| Start internal stopwatch. | |
| void | TimeStop (void) |
| Stop internal stopwatch and put time to file. More... | |
| LookString | GetLogFileName (void) |
| Get the log file name. More... | |
| bool | IsLogging (void) |
Static Protected Attributes | |
| LookString | itsLogFileName |
| bool | itIsLogging = false |
| double | itsTimeStart = 0.0 |
The log goes to a specified file.
This can also time things.
Note all logging is fopen/fprintf/fclose - the log file is thus readable by other programs immediately but the opening/closing may be slow, especially for a lot of small operations.
|
|
Get the log file name. This is maintained over calls to StartLogging() and StopLogging() |
|
|
Varargs version of logging. If it is logging, appends the string formed from fmt and any other parameters to the log file. The resulting string _must_ be < 4096 bytes long.
|
|
|
Log a string. If it is logging, appends theString to the log file.
|
|
|
Start logging.
|
|
|
Stop internal stopwatch and put time to file.
A message of the form "Finished 11-Jan-2001 10:45:54 Took 5.43 |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001