Simple class for a single, independent log file that can be passed around normally.
More...
#include <Logger.h>
|
| | Log (string newName, string newFilename) |
| | Constructor for log. More...
|
| |
| | Log () |
| | This is never used. It has something to do with tuples. DO NOT USE THIS CONSTRUCTOR. More...
|
| |
| void | log (string message, logFlag flag=info) |
| | Log a message with a timestamp and the given flag. More...
|
| |
| void | flushBuffer () |
| |
Simple class for a single, independent log file that can be passed around normally.
| ADBLib::Log::Log |
( |
string |
newName, |
|
|
string |
newFilename |
|
) |
| |
Constructor for log.
- Parameters
-
| newName | the name of the log as referred to when grabbed by Logger. |
| newFileName | The filename for the log file. Do NOT append any file extension, it does it for you. |
- Note
- If on a linux-based system (such as a roboRIO), you need to add "/" to the beginning of the filename.
This is never used. It has something to do with tuples. DO NOT USE THIS CONSTRUCTOR.
| void ADBLib::Log::flushBuffer |
( |
| ) |
|
Flush the log buffer, outputting all messages to file. Log buffers are used to reduce lag from files constantly being opened and closed, because fstream is wierd.
| void ADBLib::Log::log |
( |
string |
message, |
|
|
logFlag |
flag = info |
|
) |
| |
Log a message with a timestamp and the given flag.
- Parameters
-
| message | The message to be logged. |
| flag | This message's flag. |
| string ADBLib::Log::filename |
|
private |
| vector<string> ADBLib::Log::logBuffer |
|
private |
The documentation for this class was generated from the following files: