|
| char * | name |
| | The logger's name.
|
| |
| char * | id |
| | an identifier to refer to this logger
|
| |
| void(* | create )(PurpleLog *log) |
| | This gets called when the log is first created.
|
| |
| gsize(* | write )(PurpleLog *log, PurpleMessageFlags type, const char *from, time_t time, const char *message) |
| | This is used to write to the log file.
|
| |
| void(* | finalize )(PurpleLog *log) |
| | Called when the log is destroyed.
|
| |
| GList *(* | list )(PurpleLogType type, const char *name, PurpleAccount *account) |
| | This function returns a sorted GList of available PurpleLogs.
|
| |
| char *(* | read )(PurpleLog *log, PurpleLogReadFlags *flags) |
| | Given one of the logs returned by the logger's list function, this returns the contents of the log in GtkIMHtml markup.
|
| |
| int(* | size )(PurpleLog *log) |
| | Given one of the logs returned by the logger's list function, this returns the size of the log in bytes.
|
| |
| int(* | total_size )(PurpleLogType type, const char *name, PurpleAccount *account) |
| | Returns the total size of all the logs.
|
| |
| GList *(* | list_syslog )(PurpleAccount *account) |
| | This function returns a sorted GList of available system PurpleLogs.
|
| |
| void(* | get_log_sets )(PurpleLogSetCallback cb, GHashTable *sets) |
| | Adds PurpleLogSets to a GHashTable.
|
| |
| gboolean(* | remove )(PurpleLog *log) |
| |
| gboolean(* | is_deletable )(PurpleLog *log) |
| |
| void(* | _purple_reserved1 )(void) |
| |
| void(* | _purple_reserved2 )(void) |
| |
| void(* | _purple_reserved3 )(void) |
| |
| void(* | _purple_reserved4 )(void) |
| |
A log logger.
This struct gets filled out and is included in the PurpleLog. It contains everything needed to write and read from logs.
Definition at line 63 of file log.h.
| void(* _PurpleLogLogger::get_log_sets) (PurpleLogSetCallback cb, GHashTable *sets) |
Adds PurpleLogSets to a GHashTable.
By passing the data in the PurpleLogSets to list, the caller can get every available PurpleLog from the logger. Loggers using purple_log_common_writer() (or otherwise storing their logs in the same directory structure as the stock loggers) do not need to implement this function.
Loggers which implement this function must create a PurpleLogSet, then call cb with sets and the newly created PurpleLogSet.
Definition at line 107 of file log.h.