log-manager-priv

log-manager-priv

Synopsis

gboolean            tpl_log_manager_add_message         (TplLogManager *manager,
                                                         TplLogEntry *message,
                                                         GError **error);
void                tpl_log_manager_add_message_async   (TplLogManager *manager,
                                                         TplLogEntry *message,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

Description

Details

tpl_log_manager_add_message ()

gboolean            tpl_log_manager_add_message         (TplLogManager *manager,
                                                         TplLogEntry *message,
                                                         GError **error);

It stores message, sending it to all the registered TplLogStore which have "writable" set to TRUE. Every TplLogManager is guaranteed to have at least TplLogStore a readable and a writable LogStore regitered.

It applies for any registered TplLogStore with "writable" property TRUE

manager :

the log manager

message :

a TplLogEntry subclass's instance

error :

the memory location of GError, filled if an error occurs

Returns :

TRUE if the message has been successfully added, FALSE otherwise.

tpl_log_manager_add_message_async ()

void                tpl_log_manager_add_message_async   (TplLogManager *manager,
                                                         TplLogEntry *message,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

manager :

message :

callback :

user_data :