golib  0.5
goLog Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ error()

void goLog::error ( const goString s,
const goObjectBase caller = NULL 
)
static

Write an error message to the log.

Parameters
sMessage.
callerRefering object. Can be null.

◆ logFile()

void goLog::logFile ( const goString fn)
static

Close the old logfile and open a new one.

Parameters
fnFilename.

◆ message()

void goLog::message ( const goString s,
const goObjectBase caller = NULL 
)
static

Write a message to the log.

Parameters
sMessage.
callerRefering object. Can be null.

◆ warning()

void goLog::warning ( const goString s,
const goObjectBase caller = NULL 
)
static

Write a warning message to the log.

Parameters
sMessage.
callerRefering object. Can be null.

The documentation for this class was generated from the following files: