Class org.as2lib.env.log.repository.AscbLoggerRepository

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

Implemented Interfaces

LoggerRepository

Description

AscbLoggerRepository returns loggers of type AscbLogger.

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 ASCB Logging API. You also configure the ASCB Logging API 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 AscbLoggerRepository()

getLogger()

Inherited from BasicClass

toString()

Constructor Detail

AscbLoggerRepository

public function AscbLoggerRepository(Void)

Constructs a new AscbLoggerRepository 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