Lagrange
|
Functions related to logging. More...
Classes | |
class | ScopedLogLevel |
Changes the level of logger to something else in a scope. More... | |
Functions | |
LA_CORE_API spdlog::logger & | logger () |
Retrieves the current logger. More... | |
LA_CORE_API void | set_logger (std::shared_ptr< spdlog::logger > logger) |
Setup a logger object to be used by Lagrange. More... | |
Functions related to logging.
To use the logger in your application, simply include this header, and call
The Lagrange logger is a plain spdlog logger, with a type-safe printf formatting syntax provided by fmt. For more details, please consult these libraries' respective documentations:
logger | ( | ) |
#include <lagrange/Logger.h>
Retrieves the current logger.
void set_logger | ( | std::shared_ptr< spdlog::logger > | logger | ) |
#include <lagrange/Logger.h>
Setup a logger object to be used by Lagrange.
Calling this function with other Lagrange function is not thread-safe.
[in] | logger | New logger object to be used by Lagrange. Ownership is shared with Lagrange. |