OGMJob Reference Manual | ||||
---|---|---|---|---|
#include <ogmjob-log.h> gboolean ogmjob_log_open (const gchar *filename, GError **error); gboolean ogmjob_log_close (GError **error); void ogmjob_log_write (const gchar *str); void ogmjob_log_printf (const gchar *format, ...); void ogmjob_log_set_print_stdout (gboolean log_stdout); gboolean ogmjob_log_get_print_stdout (void); void ogmjob_log_set_print_stderr (gboolean log_stderr); gboolean ogmjob_log_get_print_stderr (void);
gboolean ogmjob_log_open (const gchar *filename, GError **error);
Opens a new log file.
|
A filename |
|
Location to store the error occuring, or NULL to ignore errors. |
Returns : |
TRUE , when no error
|
gboolean ogmjob_log_close (GError **error);
Closes the log file.
|
Location to store the error occuring, or NULL to ignore errors. |
Returns : |
TRUE , when no error
|
void ogmjob_log_write (const gchar *str);
Logs some information on stdout, stderr, and/or a file.
|
A string to log |
void ogmjob_log_printf (const gchar *format, ...);
Logs some formatted information on stdout, stderr, and/or a file.
|
A message format |
|
The parameters of the format string |
void ogmjob_log_set_print_stdout (gboolean log_stdout);
Sets whether to log information on stdout.
|
TRUE to log on stdout
|
gboolean ogmjob_log_get_print_stdout (void);
Gets whether to log information on stdout.
Returns : |
TRUE if log on stdout
|
void ogmjob_log_set_print_stderr (gboolean log_stderr);
Sets whether to log information on stderr.
|
TRUE to log on stderr
|
gboolean ogmjob_log_get_print_stderr (void);
Gets whether to log information on stderr.
Returns : |
TRUE if log on stderr
|