![]() |
Lysa
0.0
Lysa 3D Engine
|
Global manager exposing one stream per log level.
The effective outputs (stdout/file) are controlled by the first Lysa instance configuration
Public Typedefs | |
| using | LogCallback = std::function< void (LogLevel level, const std::string &line)> |
Public Member Functions | |
| Log (const LoggingConfiguration &loggingConfiguration) | |
Static Public Member Functions | |
| static void | init (const LoggingConfiguration &loggingConfiguration) |
| static void | shutdown () |
| static void | setLogCallback (LogCallback callback) |
| static consteval bool | isLoggingEnabled () |
| template<typename... Args> | |
| static void | log (Args...args) |
| static void | trace (const std::source_location &location=std::source_location::current ()) |
Log helpers per level | |
| template<typename... Args> | |
| static void | debug (Args...args) |
| template<typename... Args> | |
| static void | info (Args...args) |
| template<typename... Args> | |
| static void | game1 (Args...args) |
| template<typename... Args> | |
| static void | game2 (Args...args) |
| template<typename... Args> | |
| static void | game3 (Args...args) |
| template<typename... Args> | |
| static void | warning (Args...args) |
| template<typename... Args> | |
| static void | error (Args...args) |
| template<typename... Args> | |
| static void | critical (Args...args) |
| using LogCallback = std::function<void(LogLevel level, const std::string& line)> |
A log callback
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
inlinestatic |
Compile-time switch indicating whether logging produces output.
|
inlinestatic |
Internal helper to write to the INTERNAL stream.
| args | Elements to write. |
|
static |
Registers the log callback or nullptr to unregister.
|
static |
|
inlinestatic |
Emit a short trace with the calling function name and line.
| location | Automatically provided via std::source_location. |
|
inlinestatic |
|
friend |