#include <ArLog.h>
Public Types | |
enum | LogType { StdOut, StdErr, File, Colbert, None } |
enum | LogLevel { Terse, Normal, Verbose } |
Static Public Methods | |
void | log (LogLevel level, char *str,...) |
Log a message. More... | |
bool | init (LogType type, LogLevel level, const char *fileName="") |
Initialize the logging utility. More... | |
void | close () |
Close the logging utility. |
ArLog is a utility class to log all messages from Aria to a choosen destintation. Messages can be logged to stdout, stderr, a file, and turned off completely. Logging by default is set to stdout. The level of logging can be changed as well. Allowed levels are Terse, Normal, and Verbose. By default the level is set to Normal.
|
|
|
|
|
Initialize the logging utility. Initialize the logging utility by supplying the type of logging and the level of logging. If the type is File, the fileName needs to be supplied.
|
|
Log a message. This function is used like printf(). If the supplied level is less than or equal to the set level, it will be printed.
|