Process identity is defined by the front-end according to the return-value of pantheios_fe_getProcessIdentity(), which should return a nul-terminated C-style string representing the host process, e.g. "MyDaemon"
Filtering is carried out by pantheios_fe_isSeverityLogged(), which receives three parameters: the front-end state, the log entry severity level, and a back-end identifier. The back-end identifier value represents one of three 'questions' that are to be asked of the front-end. If backEndId
is 0, then the question is whether any logging should occur for the given severity level. If backEndId
is 1, then the question is whether logging should occur for the local back-end. If backEndId
is 2, then the question is whether logging should occur for the remote back-end.
Functions | |
int | pantheios_fe_init (void *reserved, void **ptoken) |
Initialises the front-end API. | |
void | pantheios_fe_uninit (void *token) |
Uninitialises the front-end API. | |
char const * | pantheios_fe_getProcessIdentity (void *token) |
Defines the process identity. | |
int | pantheios_fe_isSeverityLogged (void *token, int severity, int backEndId) |
Determines whether a given severity is being logged. |
|
Defines the process identity. This function must be defined by each front-end implementation. It defines the name of the process, that may be used in the emission of log statements by back-ends.
|
|
Initialises the front-end API.
*ptoken , and it will be passed back to the other functions.
|
|
Determines whether a given severity is being logged.
This function must be defined by each front-end implementation. It is called by the Pantheios core library and, optionally, a back-end library, to determine whether, for the given
|
|
Uninitialises the front-end API. This function must be defined by each front-end implementation. It uninitialises the front-end.
|
|
|
pantheios Library documentation © Matthew Wilson, 2006 |
|