Redland RDF Library Manual | ||||
---|---|---|---|---|
Top | Description |
int (*librdf_log_level_func) (void *user_data
,const char *message
,va_list arguments
); int (*librdf_log_func) (void *user_data
,librdf_log_message *message
); enum librdf_log_level; enum librdf_log_facility; int librdf_log_message_code (librdf_log_message *message
); librdf_log_level librdf_log_message_level (librdf_log_message *message
); librdf_log_facility librdf_log_message_facility (librdf_log_message *message
); const char * librdf_log_message_message (librdf_log_message *message
); raptor_locator * librdf_log_message_locator (librdf_log_message *message
);
Provides structured access to debug, information, warning and error
messages from the libraries. Structured information is most often
used from errors such as parsing where file or URI and line numbers
can be returned via a raptor_locator object pointer found by
librdf_log_message_locator()
on the librdf_log_message.
int (*librdf_log_level_func) (void *user_data
,const char *message
,va_list arguments
);
Handler for one log level, for the warning and error levels ONLY. Used by librdf_world_set_warning and librdf_world_set_error.
|
User data pointer |
|
Log message. |
|
Message arguments. |
Returns : |
non-zero to indicate log message has been handled |
int (*librdf_log_func) (void *user_data
,librdf_log_message *message
);
Handler for all log levels.
|
User data pointer |
|
Log message structure pointer. |
Returns : |
non-zero to indicate log message has been handled |
typedef enum { LIBRDF_LOG_NONE = 0, LIBRDF_LOG_DEBUG, LIBRDF_LOG_INFO, LIBRDF_LOG_WARN, LIBRDF_LOG_ERROR, LIBRDF_LOG_FATAL, LIBRDF_LOG_LAST=LIBRDF_LOG_FATAL } librdf_log_level;
Indicates the level of the log message.
typedef enum { LIBRDF_FROM_NONE = 0, LIBRDF_FROM_CONCEPTS, LIBRDF_FROM_DIGEST, LIBRDF_FROM_FILES, LIBRDF_FROM_HASH, LIBRDF_FROM_INIT, LIBRDF_FROM_ITERATOR, LIBRDF_FROM_LIST, LIBRDF_FROM_MODEL, LIBRDF_FROM_NODE, LIBRDF_FROM_PARSER, LIBRDF_FROM_QUERY, LIBRDF_FROM_SERIALIZER, LIBRDF_FROM_STATEMENT, LIBRDF_FROM_STORAGE, LIBRDF_FROM_STREAM, LIBRDF_FROM_URI, LIBRDF_FROM_UTF8, LIBRDF_FROM_MEMORY, LIBRDF_FROM_RAPTOR, LIBRDF_FROM_LAST=LIBRDF_FROM_RAPTOR } librdf_log_facility;
Indicates the part of the system that generated the log message.
Associated with no part. | |
Concepts | |
Digest | |
Files | |
Hash | |
Init | |
Iterator | |
List | |
Model | |
Node | |
Parser | |
Query | |
Serializer | |
Statement | |
Storage | |
Stream | |
URI | |
UTF8 | |
Memory | |
Raptor library (parser or serializer; Raptor 2.0.0+). | |
Internal, never returned. |
int librdf_log_message_code (librdf_log_message *message
);
Retrieve error code from log message.
|
log message |
Returns : |
int error code |
librdf_log_level librdf_log_message_level (librdf_log_message *message
);
Retrieve severity of log message.
The log message severity level is defined in rdf_log.h as values of enum librdf_log_level
|
log message |
Returns : |
severity level |
librdf_log_facility librdf_log_message_facility (librdf_log_message *message
);
Retrieve facility that generated the message.
The log message facility is defined in rdf_log.h as values of enum librdf_log_facility
|
log message |
Returns : |
ID of Redland facility that generated the log message. |
const char * librdf_log_message_message (librdf_log_message *message
);
Retrieve text message from log entry.
The string returned is shared and must be copied by the caller if required to be retained.
|
log message |
Returns : |
shared pointer to the log message string |
Navigation: Redland Home Page