Console streams, capability detection, and buffered output.
Console text styling: colors, attributes, and styled writes.
void logconsoleCloseFunc(void *userdata)
LogDest * logconsoleRegister(int maxlevel, strref chanfilter, ConStream *out, ConStream *err, const LogConsoleConfig *config, LogSerializer *ser)
struct LogConsoleData LogConsoleData
Opaque handle for console logging state.
LOGCON_COLOR_MODE
Color decision for a console destination.
void logconsoleMsgFunc(const LogRecord *rec, void *userdata)
void logconsoleBatchFunc(uint32 batchid, void *userdata)
LogConsoleData * logconsoleCreate(ConStream *out, ConStream *err, const LogConsoleConfig *config, LogSerializer *ser)
@ LOGCON_ColorOff
Never apply style; plain text only.
@ LOGCON_ColorAuto
Style only when the destination stream reports color support.
struct LogDest LogDest
Opaque handle to a registered log destination.
Log record serializers, independent of where the result is written.
ConStyle levelStyle[LOG_Count]
int colorMode
A LOGCON_COLOR_MODE value.
A record serializer, owned by whichever transport it was handed to.