44#include <StormByte/safe/function.hxx>
45#include <StormByte/safe/string.hxx>
113 default:
return "Error";
122 using SinkWrite = void (*)(
void* context,
const char* data, std::size_t size);
130 using SinkManip = void (*)(
void* context, std::ostream& (*manip)(std::ostream&));
Logger module of the StormByte suite.
void(*)(void *context, std::ostream &(*manip)(std::ostream &)) SinkManip
Caller-side application of an std::ostream manipulator.
Definition typedefs.hxx:130
StormByte::Safe::Function< void(const StormByte::Safe::String &)> SinkFunction
Typed text callback whose context is released in its creator module.
Definition typedefs.hxx:135
Level
Severity levels used by the logger.
Definition typedefs.hxx:89
@ Warning
Recoverable problems.
Definition typedefs.hxx:92
@ Notice
Significant normal events.
Definition typedefs.hxx:93
@ Info
Informational messages.
Definition typedefs.hxx:94
@ Fatal
Unrecoverable errors.
Definition typedefs.hxx:96
@ Error
Error conditions.
Definition typedefs.hxx:95
@ Debug
Debug information.
Definition typedefs.hxx:91
@ LowLevel
Verbose diagnostics.
Definition typedefs.hxx:90
void(*)(void *context, const char *data, std::size_t size) SinkWrite
Caller-side write of raw bytes into the sink.
Definition typedefs.hxx:122
Color
ANSI foreground colors supported by the logger.
Definition typedefs.hxx:60
@ Cyan
Standard cyan foreground.
Definition typedefs.hxx:68
@ White
Standard white foreground.
Definition typedefs.hxx:70
@ BrightBlue
Bright blue foreground.
Definition typedefs.hxx:75
@ BrightRed
Bright red foreground.
Definition typedefs.hxx:72
@ BrightWhite
Bright white foreground.
Definition typedefs.hxx:78
@ BrightMagenta
Bright magenta foreground.
Definition typedefs.hxx:76
@ Yellow
Standard yellow foreground.
Definition typedefs.hxx:65
@ Default
No ANSI sequence; preserve the terminal's current color.
Definition typedefs.hxx:61
@ BrightYellow
Bright yellow foreground.
Definition typedefs.hxx:74
@ BrightBlack
Bright black foreground.
Definition typedefs.hxx:71
@ Blue
Standard blue foreground.
Definition typedefs.hxx:66
@ Gray
Bright black/gray foreground.
Definition typedefs.hxx:69
@ BrightGreen
Bright green foreground.
Definition typedefs.hxx:73
@ Magenta
Standard magenta foreground.
Definition typedefs.hxx:67
@ BrightCyan
Bright cyan foreground.
Definition typedefs.hxx:77
@ Green
Standard green foreground.
Definition typedefs.hxx:64
@ Black
Standard black foreground.
Definition typedefs.hxx:62
@ Red
Standard red foreground.
Definition typedefs.hxx:63
static constexpr const char * LevelToString(const Level &l) noexcept
Convert a Level to a short name.
Definition typedefs.hxx:104
#define STORMBYTE_LOGGER_PUBLIC
Definition visibility.h:53