There are several stock back-ends supplied with the Pantheios distribution (http://pantheios.org/), providing logging to stderr (using fprintf()
), SysLog (using UNIX syslog(), or KiwiSysLog's KLOG on Win32), Win32 Debugger, ACE output. You may also supply your own back-end by implementing the three simple functions of the API: pantheios_be_init(), pantheios_be_uninit(), and pantheios_be_logEntry().
Modules | |
Pantheios Stock Back-ends | |
Pre-built back-ends supplied with the Pantheios library. | |
Pantheios Stock Back-end Ids | |
Stock back-end identifiers used by the Pantheios back-end libraries. | |
Functions | |
int | pantheios_be_init (char const *processIdentity, void *reserved, void **ptoken) |
Initialises the back-end API. | |
void | pantheios_be_uninit (void *token) |
Uninitialises the back-end API. | |
int | pantheios_be_logEntry (void *feToken, void *beToken, int severity, char const *entry, size_t cchEntry) |
Passes a log-entry to the back-end API. |
|
Initialises the back-end API. This function is called once by the Pantheios core library to initialise the back-end library. It passes the process identity (in the form of a nul-terminated C-style string) and a second parameter (reserved for future use; currently always has value 0), which the back-end may use in its initialisation. The third parameter is a pointer to a void*, with which the back-end may store state, to be passed back to it in the pantheios_be_logEntry() and pantheios_be_uninit() functions.
|
|
Passes a log-entry to the back-end API.
This function is called by the Panthieos core library to emit a log entry. It is passed five parameters. The
|
|
Uninitialises the back-end API. This function is called to uninitialise the back-end library during the uninitialisation of the Pantheios core library. It is passed the value of the token stored on its behalf by the Pantheios core library.
|
|
|
pantheios Library documentation © Matthew Wilson, 2006 |
|