Lagrange
ScopedLogLevel Class Reference

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
 
ScopedLogLeveloperator= (ScopedLogLevel &&)=delete
 
 ScopedLogLevel (const ScopedLogLevel &)=delete
 
ScopedLogLeveloperator= (const ScopedLogLevel &)=delete
 

Detailed Description

Changes the level of logger to something else in a scope.

Mostly used in unit tests. Don't use in the library itself.

Constructor & Destructor Documentation

◆ ScopedLogLevel()

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.

Parameters
[in]levelNew level to set temporarily.
[in]loggerWhich logger to apply this to, defaults to the Lagrange logger.

The documentation for this class was generated from the following files: