Logging
Enumerations
-
Defines all log verbosity levels.
Alias types
-
Called by the log system when one log is emitted.
Functions
-
void log(LogVerbosity verbosity, const c8 tag, const c8 format,...)
Logs one message.
-
void logv(LogVerbosity verbosity, const c8 tag, const c8 format, VarList args)
Logs one message.
-
void log_verbose(const c8 tag, const c8 format,...)
Outputs one log message with LogVerbosity::verbose verbosity.
-
void logv_verbose(const c8 tag, const c8 format, VarList args)
Outputs one log message with LogVerbosity::verbose verbosity.
-
void log_debug(const c8 tag, const c8 format,...)
Outputs one log message with LogVerbosity::debug verbosity.
-
void logv_debug(const c8 tag, const c8 format, VarList args)
Outputs one log message with LogVerbosity::debug verbosity.
-
void log_info(const c8 tag, const c8 format,...)
Outputs one log message with LogVerbosity::info verbosity.
-
void logv_info(const c8 tag, const c8 format, VarList args)
Outputs one log message with LogVerbosity::info verbosity.
-
void log_warning(const c8 tag, const c8 format,...)
Outputs one log message with LogVerbosity::warning verbosity.
-
void logv_warning(const c8 tag, const c8 format, VarList args)
Outputs one log message with LogVerbosity::warning verbosity.
-
void log_error(const c8 tag, const c8 format,...)
Outputs one log message with LogVerbosity::error verbosity.
-
void logv_error(const c8 tag, const c8 format, VarList args)
Outputs one log message with LogVerbosity::error verbosity.
-
usize register_log_handler(const Function< log_callback_t > &handler)
Registers one custom log handler that will be called when a new log message is spawned.
-
void unregister_log_handler(usize handler_id)
Unregisters one registered log handler.
-
void set_log_to_platform_enabled(bool enabled)
Enables or disables outputting log messages to platform's default logging device.
-
void set_log_to_platform_verbosity(LogVerbosity verbosity)
Sets the maximum log verbosity level that will be outputted to platform's default logging device.
-
void set_log_to_file_enabled(bool enabled)
Enables or disables outputting log messages to the log file.
-
void set_log_file(const c8 *file)
Sets the file path of the log file.
-
void set_log_to_file_verbosity(LogVerbosity verbosity)
Sets the maximum log verbosity level that will be outputted to the log file.
-
Flushes the log-to-file cache and writes all cached logs to the log file.