gda-log

Name

gda-log -- Log functions

Synopsis



void        gda_log_enable                  (void);
void        gda_log_disable                 (void);
gboolean    gda_log_is_enabled              (void);
void        gda_log_message                 (const gchar *format,
                                             ...);
void        gda_log_error                   (const gchar *format,
                                             ...);
void        gda_log_clean_all               (const gchar *prgname);
void        gda_log_clean_between           (const gchar *prgname,
                                             time_t from,
                                             time_t to);
void        gda_log_clean_entry             (const gchar *prgname,
                                             const gchar *entry);

Description

Details

gda_log_enable ()

void        gda_log_enable                  (void);

Enables GDA logs.


gda_log_disable ()

void        gda_log_disable                 (void);

Disables GDA logs.


gda_log_is_enabled ()

gboolean    gda_log_is_enabled              (void);

Return: whether GDA logs are enabled (TRUE or FALSE).

Returns :


gda_log_message ()

void        gda_log_message                 (const gchar *format,
                                             ...);

Logs the given message in the GDA log file.

format :

format string (see the printf(3) documentation).

... :

arguments to insert in the message.


gda_log_error ()

void        gda_log_error                   (const gchar *format,
                                             ...);

Logs the given error in the GDA log file.

format :

format string (see the printf(3) documentation).

... :

arguments to insert in the error.


gda_log_clean_all ()

void        gda_log_clean_all               (const gchar *prgname);

Clears the entire log for the given program name.

prgname :

program name


gda_log_clean_between ()

void        gda_log_clean_between           (const gchar *prgname,
                                             time_t from,
                                             time_t to);

prgname :

from :

to :


gda_log_clean_entry ()

void        gda_log_clean_entry             (const gchar *prgname,
                                             const gchar *entry);

prgname :

entry :