|
Celeritas 0.7.0-dev.290+develop.6f2e532a
|
Type definitions for logging utilities. More...
#include <cstdlib>#include <functional>#include <string>#include <string_view>Classes | |
| struct | celeritas::LogProvenance |
| Origin of a log message. More... | |
Typedefs | |
| using | celeritas::LogHandler = std::function< void(LogProvenance, LogLevel, std::string)> |
| Type for handling a log message. | |
Enumerations | |
| enum class | celeritas::LogLevel { debug , diagnostic , status , info , warning , error , critical , size_ } |
| Enumeration for how important a log message is. More... | |
Functions | |
| char const * | celeritas::to_cstring (LogLevel lev) |
| Get the plain text equivalent of the LogLevel enum. | |
| char const * | celeritas::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. | |
Type definitions for logging utilities.
|
strong |
Enumeration for how important a log message is.