Celeritas 0.7.0-dev.290+develop.6f2e532a
Loading...
Searching...
No Matches
Functions
LoggerTypes.cc File Reference
#include "LoggerTypes.hh"
#include <algorithm>
#include <string>
#include "corecel/cont/Range.hh"
#include "corecel/sys/Environment.hh"
#include "ColorUtils.hh"
#include "EnumStringMapper.hh"

Functions

char constceleritas::to_cstring (LogLevel lev)
 Get the plain text equivalent of the LogLevel enum.
 
char constceleritas::to_ansi_color (LogLevel lev)
 Get an ANSI color code appropriate to each log level.
 
LogLevel celeritas::getenv_loglevel (std::string const &level_env, LogLevel default_lev)
 Get the log level from an environment variable.
 

Function Documentation

◆ getenv_loglevel()

LogLevel celeritas::getenv_loglevel ( std::string const level_env,
LogLevel  default_lev 
)

Get the log level from an environment variable.

Exceptions
RuntimeErrorif string is invalid