Class org.as2lib.env.log.repository.AudiofarmLoggerRepository

org.as2lib.core.BasicClass
   +--org.as2lib.env.log.repository.AudiofarmLoggerRepository

Implemented Interfaces

LoggerRepository

Description

AudiofarmLoggerRepository returns loggers of type AudiofarmLogger.

Configuring your global registry, like LogManager with this repository, enables you to work externally with the As2lib Logging API, which allows you to change between different other Logging APIs, but internally with the as2logger. You also configure the as2logger as if you would use it directly.

Already received loggers are cached by name. Thus there exists only one logger instance per logger name.

Method Index

new AudiofarmLoggerRepository()

getLogger()

Inherited from BasicClass

toString()

Constructor Detail

AudiofarmLoggerRepository

public function AudiofarmLoggerRepository(Void)

Constructs a new AudiofarmLoggerRepository instance.

Method Detail

getLogger

public function getLogger(name:String):Logger

Returns a pre-configured logger for the passed-in name.

A new logger is created for names to which no logger has been assigned yet. The new logger is configured with the name. The logger is then cached by name and returned for usage.

Parameters

namethe name of the logger to return

Return

the logger corresponding to the passed-in name

Specified By

getLogger() in org.as2lib.env.log.LoggerRepository