Log4g Reference Manual | ||||
---|---|---|---|---|
Top | Description |
Log4gErrorHandler; Log4gErrorHandlerInterface; void log4g_error_handler_set_logger (Log4gErrorHandler *self
,Log4gLogger *logger
); void log4g_error_handler_error (Log4gErrorHandler *self
,Log4gLoggingEvent *event
,const gchar *message
,...
); void log4g_error_handler_set_appender (Log4gErrorHandler *self
,Log4gAppender *appender
); void log4g_error_handler_set_backup_appender (Log4gErrorHandler *self
,Log4gAppender *appender
); void (*Log4gErrorHandlerSetLogger) (Log4gErrorHandler *self
,Log4gLogger *logger
); void (*Log4gErrorHandlerError) (Log4gErrorHandler *self
,Log4gLoggingEvent *event
,const gchar *message
,va_list ap
); void (*Log4gErrorHandlerSetAppender) (Log4gErrorHandler *self
,Log4gAppender *appender
); void (*Log4gErrorHandlerSetBackupAppender) (Log4gErrorHandler *self
,Log4gAppender *appender
);
typedef struct { Log4gErrorHandlerSetLogger set_logger; /* note: this definition is here because g-ir-scanner doesn't seem to like the Log4gErrorHandlerError definition */ void (*error)(Log4gErrorHandler *self, Log4gLoggingEvent *event, const gchar *message, va_list ap); Log4gErrorHandlerSetAppender set_appender; Log4gErrorHandlerSetBackupAppender set_backup_appender; } Log4gErrorHandlerInterface;
Log4gErrorHandlerSetLogger |
Add a reference to a logger with an attached that failed. |
Handle the error (See : Log4gErrorHandlerError).
|
|
Log4gErrorHandlerSetAppender |
Set an appender to handle error messages. |
Log4gErrorHandlerSetBackupAppender |
Set a backup appender in case of failure. |
void log4g_error_handler_set_logger (Log4gErrorHandler *self
,Log4gLogger *logger
);
Call the set_logger
function for the Log4gErrorHandlerInterface of self
.
|
An error handler object. |
|
The logger to set for self .
|
Since 0.1
void log4g_error_handler_error (Log4gErrorHandler *self
,Log4gLoggingEvent *event
,const gchar *message
,...
);
Call the error
function from the Log4gErrorHandlerInterface of self
.
|
An error handler object. |
|
The event for which the error occurred. |
|
A printf formatted error message. |
|
Format parameters. |
Since 0.1
void log4g_error_handler_set_appender (Log4gErrorHandler *self
,Log4gAppender *appender
);
Call the set_appender
function from the Log4gErrorHandlerInterface
of self
.
|
An error handler object. |
|
The appender to set for self .
|
Since 0.1
void log4g_error_handler_set_backup_appender (Log4gErrorHandler *self
,Log4gAppender *appender
);
Call the set_backup_appender
function from the Log4gErrorHandlerInterface
of self
.
|
An error handler object. |
|
The backup appender to set for self .
|
Since 0.1
void (*Log4gErrorHandlerSetLogger) (Log4gErrorHandler *self
,Log4gLogger *logger
);
Add a reference to a logger to which the failing appender might be attached.
The failing appender will be searched an replaced only in the loggers you add through this method.
|
An error handler object. |
|
The logger to set for self .
|
Since 0.1
void (*Log4gErrorHandlerError) (Log4gErrorHandler *self
,Log4gLoggingEvent *event
,const gchar *message
,va_list ap
);
Invoke this function to handler the error.
|
An error handler object. |
|
The event for which the error occurred. |
|
A printf formatted error message. |
|
Format parameters. |
Since 0.1
void (*Log4gErrorHandlerSetAppender) (Log4gErrorHandler *self
,Log4gAppender *appender
);
Set the appender for which errors are handled.
This function is usually called when the error handler is configured.
|
An error handler object. |
|
The appender to set for self .
|
Since 0.1
void (*Log4gErrorHandlerSetBackupAppender) (Log4gErrorHandler *self
,Log4gAppender *appender
);
Set the appender to fall back on in case of failure.
|
An error handler object. |
|
The backup appender to set for self .
|
Since 0.1