Go to the source code of this file.
Typedefs | |
typedef void(* | LOGGERFUNCTIONLOG )(const char *s) |
Enumerations | |
enum | LOGGER_LOGTYPE { LoggerTypeConsole, LoggerTypeFile, LoggerTypeSyslog, LoggerTypeFunction } |
enum | LOGGER_FACILITY { LoggerFacilityAuth = 0, LoggerFacilityDaemon, LoggerFacilityMail, LoggerFacilityNews, LoggerFacilityUser } |
enum | LOGGER_LEVEL { LoggerLevelEmergency = 0, LoggerLevelAlert, LoggerLevelCritical, LoggerLevelError, LoggerLevelWarning, LoggerLevelNotice, LoggerLevelInfo, LoggerLevelDebug } |
Functions | |
CHIPCARD_API int | Logger_Open (const char *ident, const char *file, LOGGER_LOGTYPE logtype, LOGGER_FACILITY facility) |
CHIPCARD_API void | Logger_Close () |
CHIPCARD_API int | Logger_Log (LOGGER_LEVEL priority, const char *s) |
CHIPCARD_API void | Logger_Enable (int f) |
CHIPCARD_API int | Logger_IsEnabled () |
CHIPCARD_API void | Logger_SetLevel (LOGGER_LEVEL l) |
CHIPCARD_API int | Logger_GetLevel () |
CHIPCARD_API void | Logger_SetIdent (const char *id) |
CHIPCARD_API LOGGERFUNCTIONLOG | Logger_SetLogFunction (LOGGERFUNCTIONLOG fn) |
|
|
|
|
|
|
|
|
|
Shuts down logging. Automatically disables logging.
|
|
Enables or disables logging.
|
|
Returns the current log level.
|
|
Checks whether logging is enabled.
|
|
Log a message.
|
|
Sets up logging. It automatically enables logging.
|
|
Set ident string. This string is prepended to every log message and should contain the name of the running program.
|
|
Sets the logger level. All messages with a priority up to the given one will be logged, all others will not.
|
|
Set logging function. This function is used to log messages in mode LoggerTypeFunction.
|