Log4gLoggerFactory

Log4gLoggerFactory — Create a logger via a factory class

Synopsis

                    Log4gLoggerFactory;
                    Log4gLoggerFactoryInterface;
Log4gLogger *       log4g_logger_factory_make_new_logger_instance
                                                        (Log4gLoggerFactory *self,
                                                         const gchar *name);
Log4gLogger         (*Log4gLoggerFactoryMakeNewLoggerInstance)
                                                        (Log4gLoggerFactory *self,
                                                         const gchar *name);

Description

Implement this interface to create new instances of Log4gLogger or a sub-class of Log4gLogger.

Details

Log4gLoggerFactory

typedef struct _Log4gLoggerFactory Log4gLoggerFactory;

Log4gLoggerFactoryInterface

typedef struct {
    Log4gLoggerFactoryMakeNewLoggerInstance make_new_logger_instance;
} Log4gLoggerFactoryInterface;

Log4gLoggerFactoryMakeNewLoggerInstance make_new_logger_instance;

Create a new logger object.

log4g_logger_factory_make_new_logger_instance ()

Log4gLogger *       log4g_logger_factory_make_new_logger_instance
                                                        (Log4gLoggerFactory *self,
                                                         const gchar *name);

Call the make_new_logger_instance function from the Log4gLoggerFactoryInterface of self.

self :

A logger factory object.

name :

The name of the logger to create.

Returns :

A new logger named \e name.

Since 0.1


Log4gLoggerFactoryMakeNewLoggerInstance ()

Log4gLogger         (*Log4gLoggerFactoryMakeNewLoggerInstance)
                                                        (Log4gLoggerFactory *self,
                                                         const gchar *name);

Create a new logger object.

self :

A logger factory object.

name :

The name of the logger to create.

Returns :

A new logger named \e name.

Since 0.1

See Also

Log4gLoggerClass