36 LoggingSeverity_Undefined = 0,
90 typedef void(CALLING_CONVENTION *Sink_Flush_Function)(
void* user_data);
96 Sink_Log_Function sink_callback,
97 Sink_Flush_Function sink_flush_callback,
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
LoggingSeverity
Available severity settings.
Definition c_logging.h:35
@ LoggingSeverity_Trace
Most verbose setting includes all available informations.
Definition c_logging.h:41
@ LoggingSeverity_Critical
Include only fatal problems, that disallow program to continue operating and will be shut down.
Definition c_logging.h:69
@ LoggingSeverity_Info
Include detailed, but much less verbose output.
Definition c_logging.h:52
@ LoggingSeverity_Warning
Include only potentially dangerous information.
Definition c_logging.h:57
@ LoggingSeverity_Off
Logging is turned off entirely.
Definition c_logging.h:74
@ LoggingSeverity_Error
Include only program and input errors.
Definition c_logging.h:62
@ LoggingSeverity_Debug
Very detailed level with most of the necessary information required during debugging.
Definition c_logging.h:47
This file contains types and constants used as parameters or return values.
error_type CALLING_CONVENTION Logging_SetSeverity(LoggingSeverity level)
Set new logging severity.
error_type CALLING_CONVENTION Logging_SetCallbackLogger(Sink_Log_Function sink_callback, Sink_Flush_Function sink_flush_callback, void *user_data)
Set a logger, that will invoke sink_callback and sink_flush_callback passing user_data.
error_type CALLING_CONVENTION Logging_Shutdown()
Gracefully terminate the entire logging ecosystem.
error_type CALLING_CONVENTION Logging_SetRotatingFileLogger(string_type filename, integer_type max_file_size, integer_type max_files)
Set a logger using rotating file sink based on size.
error_type CALLING_CONVENTION Logging_GetSeverity(LoggingSeverity *level)
Get actual logging severity.
error_type CALLING_CONVENTION Logging_SetPattern(string_type pattern)
Set logging pattern to be used for each logging entry.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
int32_t integer_type
32-bit signed integer
Definition c_types.h:51
uint32_t size_type
Size type defined in standard library.
Definition c_types.h:62
const char * string_type
C-Style string.
Definition c_types.h:82