Celeritas
0.5.0-86+4a8eea4
|
Type definitions for logging utilities. More...
#include <cstdlib>
#include <functional>
#include <string>
#include <string_view>
Classes | |
struct | celeritas::LogProvenance |
Stand-in for a more complex class for the "provenance" of data. More... | |
Typedefs | |
using | celeritas::LogHandler = std::function< void(LogProvenance, LogLevel, std::string)> |
Type for handling a log message. | |
using | celeritas::Provenance = LogProvenance |
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_color_code (LogLevel lev) |
Get an ANSI color code appropriate to each log level. | |
Type definitions for logging utilities.
|
strong |
Enumeration for how important a log message is.