Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
log.cpp File Reference
#include "momentum/common/log.h"
#include "momentum/common/exception.h"
#include <algorithm>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

std::map< std::string, LogLevel > momentum::logLevelMap ()
 Returns the canonical mapping from human-readable level names ("Disabled", "Error", "Warning", "Info", "Debug", "Trace") to LogLevel values.
void momentum::setLogLevel (LogLevel level)
 Sets the global log threshold; messages below level are filtered out.
void momentum::setLogLevel (const std::string &levelStr)
 Parses levelStr (case-insensitive: "TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "DISABLED") and forwards to setLogLevel(LogLevel).
LogLevel momentum::getLogLevel ()
 Returns the current global log threshold.