Log4gConfigurator

Log4gConfigurator — Log4g configuration interface

Synopsis

                    Log4gConfigurator;
                    Log4gConfiguratorInterface;
gboolean            log4g_configurator_do_configure     (Log4gConfigurator *self,
                                                         const char *uri,
                                                         Log4gLoggerRepository *repository,
                                                         GError **error);
gboolean            (*Log4gConfiguratorDoConfigure)     (Log4gConfigurator *self,
                                                         const char *uri,
                                                         Log4gLoggerRepository *repository,
                                                         GError **error);

Description

This interface should be implemented by classes capable of configuring Log4g via a URI.

Details

Log4gConfigurator

typedef struct _Log4gConfigurator Log4gConfigurator;

Log4gConfiguratorInterface

typedef struct {
    Log4gConfiguratorDoConfigure do_configure;
} Log4gConfiguratorInterface;

Log4gConfiguratorDoConfigure do_configure;

Perform configuration actions.

log4g_configurator_do_configure ()

gboolean            log4g_configurator_do_configure     (Log4gConfigurator *self,
                                                         const char *uri,
                                                         Log4gLoggerRepository *repository,
                                                         GError **error);

Calls the do_configure function from the Log4gConfiguratorInterface of self.

self :

A configurator object.

uri :

The URI from which load configuration.

repository :

The repository to configure.

error :

Errors are returned here.

Returns :

TRUE if the configuration was successful, FALSE otherwise.

Since 0.1


Log4gConfiguratorDoConfigure ()

gboolean            (*Log4gConfiguratorDoConfigure)     (Log4gConfigurator *self,
                                                         const char *uri,
                                                         Log4gLoggerRepository *repository,
                                                         GError **error);

Interpret a resource pointed to a URI and configure Log4g.

self :

A configurator object.

uri :

The URI from which load configuration.

repository :

The repository to configure.

error :

Errors are returned here.

Returns :

TRUE if the configuration was successful, FALSE otherwise.

Since 0.1