|
| virtual | ~ILogger ()=default |
|
template<typename... Args> |
| void | trace (fmt::format_string< Args... > log, Args &&... args) |
|
template<typename... Args> |
| void | debug (fmt::format_string< Args... > log, Args &&... args) |
|
template<typename... Args> |
| void | info (fmt::format_string< Args... > log, Args &&... args) |
|
template<typename... Args> |
| void | warn (fmt::format_string< Args... > log, Args &&... args) |
|
template<typename... Args> |
| void | error (fmt::format_string< Args... > log, Args &&... args) |
|
template<typename... Args> |
| void | fatal (fmt::format_string< Args... > log, Args &&... args) |
|
virtual void | setLogLevel (ILogger::Severity logLevel)=0 |
|
virtual std::string | getLogFile ()=0 |
A logger class to be implemented around a separate logging library. ILogger is what will be used throughout the game files.
The public functions defined in the class are templates which use the format library to insert the extra parameters into the final string. To simplify operation for the backend, they receive the final formatted string in the log parameter, at which point they can log with it as is desired.