Log4gRepositorySelector

Log4gRepositorySelector — Select the correct logger repository

Synopsis

                    Log4gRepositorySelector;
struct              Log4gRepositorySelectorInterface;
Log4gLoggerRepository * log4g_repository_selector_get_logger_repository
                                                        (Log4gRepositorySelector *self);
Log4gLoggerRepository  (*Log4gRepositorySelectorGetLoggerRepository)
                                                        (Log4gRepositorySelector *self);

Description

The log manager uses a repository selector implementation to select the logger repository for a particular application context.

It is the responsibility of the repository selector implementation to track the application context. Log4g makes no assumptions about the application context.

Details

Log4gRepositorySelector

typedef struct _Log4gRepositorySelector Log4gRepositorySelector;

struct Log4gRepositorySelectorInterface

struct Log4gRepositorySelectorInterface {
    Log4gRepositorySelectorGetLoggerRepository get_logger_repository;
};

Log4gRepositorySelectorGetLoggerRepository get_logger_repository;

Select the current logger repository.

log4g_repository_selector_get_logger_repository ()

Log4gLoggerRepository * log4g_repository_selector_get_logger_repository
                                                        (Log4gRepositorySelector *self);

Call the get_logger_repository function from the Log4gRepositorySelectorInterface of self.

See: Log4gLoggerRepositoryInterface

self :

A repository selector object.

Returns :

The logger repository for the current application context.

Since 0.1


Log4gRepositorySelectorGetLoggerRepository ()

Log4gLoggerRepository  (*Log4gRepositorySelectorGetLoggerRepository)
                                                        (Log4gRepositorySelector *self);

Select the logger repository for the current application context.

Implementors must assure that a valid (non-NULL) logger repository is returned.

See: Log4gLoggerRepositoryInterface

self :

A repository selector object.

Returns :

The logger repository for the current application context.

Since 0.1

See Also

Log4gLoggerRepositoryInterface