#include <Debug.hpp>
|
| Debug (std::string file) |
| Debug - Constructor.
|
|
| ~Debug () |
| Debug - Deconstructor.
|
|
void | debug (std::string msg, std::string type="debug", bool show=true) |
| Debug with an output in the console and appending it to the previously set file.
|
|
void | clear () |
| Clear all the contents of the loaded file.
|
|
std::string | getFilePath () |
| Get the current file path of the set Debug
|
|
bool | isFileOpen () |
| Check if the file is open.
|
|
◆ Debug()
bot::Debug::Debug |
( |
std::string | file | ) |
|
Debug - Constructor.
- Parameters
-
`file` | > Sets the current file for debugging |
◆ ~Debug()
◆ clear()
void bot::Debug::clear |
( |
| ) |
|
Clear all the contents of the loaded file.
Clear - Function
◆ debug()
void bot::Debug::debug |
( |
std::string | msg, |
|
|
std::string | type = "debug", |
|
|
bool | show = true ) |
Debug with an output in the console and appending it to the previously set file.
debug - Function
- Parameters
-
`msg` | > Set the message and append it to stdout and to the previously set file |
`type` | > Set the type of the message, such as: debug, info, warn, error |
◆ getFilePath()
std::string bot::Debug::getFilePath |
( |
| ) |
|
Get the current file path of the set Debug
Get file path - Function
- Returns
- std::string
◆ isFileOpen()
bool bot::Debug::isFileOpen |
( |
| ) |
|
Check if the file is open.
Is file open - Function
- Returns
- bool
◆ file
std::fstream bot::Debug::file |
|
static |
◆ filePath
std::string bot::Debug::filePath |
|
staticprivate |
The documentation for this class was generated from the following files: