Lagrange
|
Changes the level of logger to something else in a scope. More...
#include <lagrange/Logger.h>
Public Member Functions | |
ScopedLogLevel (spdlog::level::level_enum level, spdlog::logger &logger=lagrange::logger()) | |
Changes the level of logger to something else in a scope. More... | |
ScopedLogLevel (ScopedLogLevel &&)=delete | |
ScopedLogLevel & | operator= (ScopedLogLevel &&)=delete |
ScopedLogLevel (const ScopedLogLevel &)=delete | |
ScopedLogLevel & | operator= (const ScopedLogLevel &)=delete |
Changes the level of logger to something else in a scope.
Mostly used in unit tests. Don't use in the library itself.
ScopedLogLevel | ( | spdlog::level::level_enum | level, |
spdlog::logger & | logger = lagrange::logger() |
||
) |
Changes the level of logger to something else in a scope.
Mostly used in unit tests. Don't use in the library itself.
[in] | level | New level to set temporarily. |
[in] | logger | Which logger to apply this to, defaults to the Lagrange logger. |