Go to the source code of this file.
Log domains. | |
| #define | GI_LOG_FATAL (0x01) |
| #define | GI_LOG_EMERG (0x02) |
| #define | GI_LOG_ERROR (0x04) |
| #define | GI_LOG_WARNING (0x08) |
| #define | GI_LOG_DEBUG (0x20) |
| #define | GI_LOG_DEPRECATED (0x100) |
| #define | GI_LOG_ALL (0x13f) |
| #define | GI_LOG_NONE (0x00) |
Log output methods and options. | |
| #define | GI_LOG_STDOUT (0x01) |
| #define | GI_LOG_STDERR (0x02) |
| #define | GI_LOG_TIMESTAMP (0x20) /* prepend a timestamp to each msg */ |
| #define | GI_LOG_NODOMAINPFX (0x40) |
| #define | GI_PRINTF_ATTR(f, v) |
| #define | GI_LOG_WRAPPER(__funcfn__) |
| #define | __FUNCTION__ __func__ |
| #define | GI_TRACE __FILE__, __LINE__, __FUNCTION__ |
| #define | GI_TRACEL __FILE__, 0, NULL |
| #define | gi_log_debug gi_log_simple |
| #define | gi_log_message gi_log_simple |
| EXTERN_C_BEGIN LIBGIFT_EXPORT void | gi_log_init (const char *ident, int output, int domain_mask, int level) |
| LIBGIFT_EXPORT void | gi_log_finish (void) |
| LIBGIFT_EXPORT FILE * | gi_log_open (const char *pathname) |
| LIBGIFT_EXPORT void | gi_log_close (FILE *f) |
| LIBGIFT_EXPORT int | gi_log_vprintf (const char *file, unsigned int line, const char *funcname, int domain, int level, const char *fmt, va_list args) |
| LIBGIFT_EXPORT int | gi_log_printf (int domain, int level, const char *fmt,...) |
| GI_LOG_WRAPPER (gi_log_simple) | |
| GI_LOG_WRAPPER (gi_log_warning) | |
| GI_LOG_WRAPPER (gi_log_error) | |
| GI_LOG_WRAPPER (gi_log_emerg) | |
| GI_LOG_WRAPPER (gi_log_fatal) | |
| LIBGIFT_EXPORT int | gi_log_debugfn (const char *file, unsigned int line, const char *funcname, int level, const char *fmt,...) GI_PRINTF_ATTR(5 |
|
|
Value: Wrapper for gi_log_vprintf which pass the appropriate domain parameter. This is used to produce the prototypes for gi_log_debug, error, etc, and is not intended to be used directly by the user under any circumstance. |
|
|
Explicitly close a previously opened log output stream. If you wish to close down all opened log output channels at once, use gi_log_finish. |
|
||||||||||||||||||||||||||||
|
Special logging facility which adds source trace information (file, line and function) from the caller. Usage of this function should be through the ::gi_log_debug macro, which guarantees that this interface works correctly on C99-compliant hosts, as well as GNU C. Other platforms will simply replace usage of ::gi_log_debug with ::gi_log_message. |
|
|
Shut down the logging facility and cleanup any opened output streams. This includes streams opened through the gi_log_open interface. |
|
||||||||||||||||||||
|
Initialize the logging facilities and open the requested output streams if applicable.
|
|
|
Open a log output channel through fopen after initialization. No special opens must be used for the `output' during gi_log_init. The file described by `pathname' will be created if it doesn't exist, and will be truncated if it does. |
|
||||||||||||||||||||
|
Wrapper for gi_log_vprintf. |
|
||||||||||||||||||||||||||||||||
|
Write the log message through the vprintf family of functions. This is the primary logging interface, to which all other interfaces act as mere wrappers.
|
1.3.7