#include <config.h>
#include <stdio.h>
#include <sys/stat.h>
#include "libgeda_priv.h"
#include <time.h>
Go to the source code of this file.
Define Documentation
Value:(G_LOG_LEVEL_MASK ^ \
(G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO))
Definition at line 54 of file s_log.c.
Value:
Definition at line 56 of file s_log.c.
#define LOG_OPEN_ATTEMPTS 5 |
Function Documentation
static void s_log_handler |
( |
const gchar * |
log_domain, |
|
|
GLogLevelFlags |
log_level, |
|
|
const gchar * |
message, |
|
|
gpointer |
user_data |
|
) |
| [static] |
- Function Description
- Writes message to the current log file whose file descriptor is logfile_fd.
It also sends message to the optional function x_log_update for further use.
- Parameters:
-
[in] | log_domain | (unused). |
[in] | log_level | (unused). |
[in] | message | Character string containing message to write to log. |
[in] | user_data | (unused). |
Definition at line 251 of file s_log.c.
void s_log_init |
( |
const gchar * |
prefix | ) |
|
- Function Description
- This function opens the file filename to log to and registers the handler to redirect log message to this file.
- Parameters:
-
[in] | prefix | Character string with file name prefix to log to. |
Definition at line 77 of file s_log.c.
void s_log_close |
( |
void |
| ) |
|
- Function Description
- This function deregisters the handler for redirection to the log file and closes it.
Definition at line 180 of file s_log.c.
gchar* s_log_read |
( |
void |
| ) |
|
- Function Description
- This function reads the current log file and returns its contents.
- Returns:
- Character string with current log's contents.
Definition at line 207 of file s_log.c.
Variable Documentation
Default setting for log update callback function.
Definition at line 49 of file s_log.c.
Default setting for log enable.
Definition at line 52 of file s_log.c.