|
ocssw
V2022
|
#include <stdarg.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>Go to the source code of this file.
Classes | |
| struct | olog_backend |
Macros | |
| #define | OLOG_DEBUG 0 |
| #define | OLOG_INFO 1 |
| #define | OLOG_NOTICE 2 |
| #define | OLOG_WARNING 3 |
| #define | OLOG_ERROR 4 |
| #define | OLOG_CRITICAL 5 |
| #define | OLOG_ALERT 6 |
| #define | OLOG_EMERGENCY 7 |
| #define | OLOG_CONTINUE 0 |
| #define | OLOG_NOERROR 0 |
| #define | OLOG_EXPLODED 1 |
| #define | OLOG_STOP 255 |
| #define | olog_print_verbose(olog, level, ...) |
Typedefs | |
| typedef int(* | olog_print_callback) (olog *olog, olog_backend *backend, uint8_t severity, va_list args) |
| typedef int(* | olog_destroy_callback) (olog *olog, olog_backend *backend) |
| typedef int(* | olog_has_error_callback) (olog *olog, olog_backend *backend) |
| typedef int(* | olog_print_error_callback) (olog *olog, olog_backend *backend, FILE *stream) |
Functions | |
| olog * | olog_create (olog_backend *backends, FILE *stream) |
| void | olog_destroy (olog *olog) |
| bool | olog_has_error (olog *olog) |
| bool | olog_print_error (olog *olog, FILE *stream) |
| int | olog_print (olog *olog, int level,...) |
| int | olog_vprint (olog *olog, int8_t level, va_list args) |
| int | olog_debug (olog *olog,...) |
| int | olog_info (olog *olog,...) |
| int | olog_notice (olog *olog,...) |
| int | olog_warn (olog *olog,...) |
| int | olog_err (olog *olog,...) |
| int | olog_crit (olog *olog,...) |
| int | olog_emerg (olog *olog,...) |
Variables | |
| olog * | olog_global_log |
| char * | olog_global_config |
| olog_backend | olog_backends_end |
Detailed Description
A simple logger, capable of dispatching log events to multiple end points.
olog is meant to be as simple as possible to use, configure, and extend.
Definition in file olog.h.
Macro Definition Documentation
◆ OLOG_ALERT
◆ OLOG_CONTINUE
◆ OLOG_CRITICAL
◆ OLOG_DEBUG
◆ OLOG_EMERGENCY
◆ OLOG_ERROR
◆ OLOG_EXPLODED
◆ OLOG_INFO
◆ OLOG_NOERROR
◆ OLOG_NOTICE
◆ olog_print_verbose
| #define olog_print_verbose | ( | olog, | |
| level, | |||
| ... | |||
| ) |
◆ OLOG_STOP
◆ OLOG_WARNING
Typedef Documentation
◆ olog_destroy_callback
| typedef int(* olog_destroy_callback) (olog *olog, olog_backend *backend) |
◆ olog_has_error_callback
| typedef int(* olog_has_error_callback) (olog *olog, olog_backend *backend) |
◆ olog_print_callback
| typedef int(* olog_print_callback) (olog *olog, olog_backend *backend, uint8_t severity, va_list args) |
◆ olog_print_error_callback
| typedef int(* olog_print_error_callback) (olog *olog, olog_backend *backend, FILE *stream) |
Function Documentation
◆ olog_create()
| olog* olog_create | ( | olog_backend * | backends, |
| FILE * | stream | ||
| ) |
◆ olog_crit()
| int olog_crit | ( | olog * | olog, |
| ... | |||
| ) |
◆ olog_debug()
| int olog_debug | ( | olog * | olog, |
| ... | |||
| ) |
◆ olog_destroy()
◆ olog_emerg()
| int olog_emerg | ( | olog * | olog, |
| ... | |||
| ) |
◆ olog_err()
| int olog_err | ( | olog * | olog, |
| ... | |||
| ) |
◆ olog_has_error()
◆ olog_info()
| int olog_info | ( | olog * | olog, |
| ... | |||
| ) |
◆ olog_notice()
| int olog_notice | ( | olog * | olog, |
| ... | |||
| ) |
◆ olog_print()
◆ olog_print_error()
◆ olog_vprint()
◆ olog_warn()
| int olog_warn | ( | olog * | olog, |
| ... | |||
| ) |
Variable Documentation
◆ olog_backends_end
| olog_backend olog_backends_end |
Definition at line 10 of file olog_loader.c.
◆ olog_global_config
| char* olog_global_config |
Definition at line 9 of file olog_loader.c.
◆ olog_global_log
| olog* olog_global_log |
Definition at line 8 of file olog_loader.c.


