Main Page | Namespace List | Alphabetical List | Class List | Directories | File List | Class Members | File Members

LogWriter Class Reference

#include <LogWriter.h>

List of all members.

Static Public Member Functions

static void addLog (char *)
static void addLog (char *, char *)
static void addLog (const char *, const char *)
static void addLog (string)
static void addLog (string, string)
static void disableLogging ()
static int getLogLevel ()
static bool loggingEnabled ()
static void setLogLevel (int logLevel)
static void setLogPath (const char *)
static void writeDate ()

Static Private Attributes

static int logLevel = 0
static char logPath [255]


Detailed Description

Collection of static methods that control logging for the application. Logging can operate at three levels:

0 - disabled 1 - medium. Logs only some database transactions 2 - full. Complete record of changes to the database

Logging is disabled by SpikeStreamMainWindow at start up if the log file is too large. The maximum size of log file is set in SpikeStreamApplication.config. This class is not currently used, but is available if needed.

Definition at line 45 of file LogWriter.h.


Member Function Documentation

void LogWriter::addLog string  data1,
string  data2
[static]
 

Add log to the log file.

Definition at line 83 of file LogWriter.cpp.

References logLevel, and logPath.

void LogWriter::addLog string  data  )  [static]
 

Add log to the log file.

Definition at line 73 of file LogWriter.cpp.

References logLevel, and logPath.

void LogWriter::addLog const char *  data1,
const char *  data2
[static]
 

Add log to the log file.

Definition at line 63 of file LogWriter.cpp.

References logLevel, and logPath.

void LogWriter::addLog char *  data1,
char *  data2
[static]
 

Add log to the log file.

Definition at line 53 of file LogWriter.cpp.

References logLevel, and logPath.

void LogWriter::addLog char *  data  )  [static]
 

Add log to the log file.

Definition at line 43 of file LogWriter.cpp.

References logLevel, and logPath.

void LogWriter::disableLogging  )  [static]
 

Switche logging off.

Definition at line 93 of file LogWriter.cpp.

References logLevel.

int LogWriter::getLogLevel  )  [static]
 

Returns the log level.

Definition at line 99 of file LogWriter.cpp.

References logLevel.

bool LogWriter::loggingEnabled  )  [static]
 

Returns true if logging is enabled.

Definition at line 105 of file LogWriter.cpp.

References logLevel.

void LogWriter::setLogLevel int  logLev  )  [static]
 

Sets the log level.

Definition at line 113 of file LogWriter.cpp.

References logLevel.

void LogWriter::setLogPath const char *  lp  )  [static]
 

Sets the location of the log path.

Definition at line 119 of file LogWriter.cpp.

References logPath, and Utilities::safeCStringCopy().

void LogWriter::writeDate  )  [static]
 

Writes the date and time to the log.

Definition at line 125 of file LogWriter.cpp.

References logLevel, and logPath.


Member Data Documentation

int LogWriter::logLevel = 0 [static, private]
 

The amount of logging used.

Definition at line 63 of file LogWriter.h.

Referenced by addLog(), disableLogging(), getLogLevel(), loggingEnabled(), setLogLevel(), and writeDate().

char LogWriter::logPath [static, private]
 

Location f the log output file.

Definition at line 66 of file LogWriter.h.

Referenced by addLog(), setLogPath(), and writeDate().


The documentation for this class was generated from the following files:
Generated on Mon Sep 3 22:18:50 2007 for SpikeStream Library by  doxygen 1.4.4