Static logging class allowing for global access to logging capabilities without a whole lot of annoyances.
More...
#include <Logger.h>
|
| static void | log (string message, string name, logFlag flag=info) |
| | Logs a message to the log designated log. More...
|
| |
| static void | newLog (string name, string filename) |
| | Creates a new log with the given name and filename. More...
|
| |
| static Log * | getLog (string name) |
| | Gets a pointer to a log of the given name. More...
|
| |
| static void | flushLogBuffers () |
| | Flush all log buffers, outputting ALL logs to text. More...
|
| |
Static logging class allowing for global access to logging capabilities without a whole lot of annoyances.
| ADBLib::Logger::Logger |
( |
| ) |
|
| void ADBLib::Logger::flushLogBuffers |
( |
| ) |
|
|
static |
Flush all log buffers, outputting ALL logs to text.
| Log * ADBLib::Logger::getLog |
( |
string |
name | ) |
|
|
static |
Gets a pointer to a log of the given name.
- Parameters
-
- Returns
- Pointer to the log object. Returns nullptr if the log does not exist.
| void ADBLib::Logger::log |
( |
string |
message, |
|
|
string |
name, |
|
|
logFlag |
flag = info |
|
) |
| |
|
static |
Logs a message to the log designated log.
- Parameters
-
| message | The message to log. |
| flag | The flag of the message. |
| name | The name of the log to log to. |
| void ADBLib::Logger::newLog |
( |
string |
name, |
|
|
string |
filename |
|
) |
| |
|
static |
Creates a new log with the given name and filename.
- Parameters
-
| name | The name of the log to create. |
| filename | The file to write to. |
- Note
- Don't forget a leading '/' on the filename.
| unordered_map< string, Log > ADBLib::Logger::logFiles |
|
staticprivate |
The documentation for this class was generated from the following files: