LoggerRegistry

Service registry for loggers

final
since

4.0.0

package

Joomla CMS

Methods

getLoggerClass

Get the logger class for a given key

getLoggerClass( key) : 
since

4.0.0

throws

InvalidArgumentException

Arguments

key

stringThe key to look up

Response

string

hasLogger

Check if the registry has a logger for the given key

hasLogger( key) : 
since

4.0.0

Arguments

key

stringThe key to look up

Response

bool

register

Register a logger

register( key,  class,  replace = false) : 
since

4.0.0

Arguments

key

stringThe service key to be registered

class

stringThe class name of the logger

replace

boolFlag indicating the service key may replace an existing definition

Response

void

Properties

loggerMap

Array holding the registered services

since

4.0.0

Type(s)

array<string|int, string>