BCLog Class Reference
#include <BCLog.h>
List of all members.
Detailed Description
A class for managing log messages.
- Author:
- Daniel Kollar
Kevin Kröninger
- Version:
- 1.0
- Date:
- 08.2008 This class manages log messages for printing on the screen and into a log file
Definition at line 34 of file BCLog.h.
Member Enumeration Documentation
Enumerator for the amount of details to put into the log file Log levels: debug : Lowest level of information detail : Details of functions, etc. summary : Results warning : Warning messages nothing : Not written into file
- Enumerator:
-
debug |
|
detail |
|
summary |
|
warning |
|
nothing |
|
Definition at line 50 of file BCLog.h.
Constructor & Destructor Documentation
A constructor.
Definition at line 24 of file BCLog.cxx.
Member Function Documentation
void BCLog::CloseLog |
( |
|
) |
[static] |
Closes the log file
Definition at line 88 of file BCLog.cxx.
static int BCLog::GetHIndex |
( |
|
) |
[inline, static] |
- Returns:
- unique number for use in histogram name string
Definition at line 139 of file BCLog.h.
Returns the minimum log level for file output.
- Returns:
- The log level
Definition at line 70 of file BCLog.h.
static BCLog::LogLevel BCLog::GetMinimumLogLevelScreen |
( |
|
) |
[inline, static] |
Returns the minimum log level for screen output.
- Returns:
- The log level
Definition at line 77 of file BCLog.h.
static const char* BCLog::GetVersion |
( |
|
) |
[inline, static] |
- Returns:
- string containing the version number
Definition at line 133 of file BCLog.h.
void BCLog::OpenLog |
( |
|
) |
[static] |
void BCLog::OpenLog |
( |
const char * |
filename |
) |
[static] |
Opens log file and sets minimum log levels for file and screen output.
- Parameters:
-
| filename | The log filename |
| loglevelfile | The minimum log level for file output |
| loglevelscreen | The minimum log level for screen output |
Definition at line 40 of file BCLog.cxx.
void BCLog::Out |
( |
const char * |
message |
) |
[static] |
static void BCLog::SetMinimumLogLevelFile |
( |
BCLog::LogLevel |
loglevel |
) |
[inline, static] |
Sets the minimum log level for file output.
- Parameters:
-
Definition at line 86 of file BCLog.h.
static void BCLog::SetMinimumLogLevelScreen |
( |
BCLog::LogLevel |
loglevel |
) |
[inline, static] |
Sets the minimum log level for screen output.
- Parameters:
-
Definition at line 93 of file BCLog.h.
void BCLog::StartupInfo |
( |
|
) |
[static] |
Writes startup information onto screen and into a logfile
Definition at line 131 of file BCLog.cxx.
const char * BCLog::ToString |
( |
BCLog::LogLevel |
loglevel |
) |
[static, private] |
Converts a log level to a string
Definition at line 159 of file BCLog.cxx.
Member Data Documentation
Global histogram counter
Definition at line 172 of file BCLog.h.
The minimum file log level
Definition at line 152 of file BCLog.h.
The minimum screen log level
Definition at line 157 of file BCLog.h.
The output stream for the file log
Definition at line 162 of file BCLog.h.
BAT version number
Definition at line 140 of file BCLog.h.