class LoggerManager implements ArrayAccess, Countable, IteratorAggregate (View source)

The LoggerFactory class.

Methods

__construct(string $logPath)

LoggerPool constructor.

emergency(string $category, string $message, array $context = array())

System is unusable.

alert(string $category, string $message, array $context = array())

Action must be taken immediately.

critical(string $category, string $message, array $context = array())

Critical conditions.

error(string $category, string $message, array $context = array())

Runtime errors that do not require immediate action but should typically be logged and monitored.

warning(string $category, string $message, array $context = array())

Exceptional occurrences that are not errors.

notice(string $category, string $message, array $context = array())

Normal but significant events.

info(string $category, string $message, array $context = array())

Interesting events.

debug(string $category, string $message, array $context = array())

Detailed debug information.

log(string $category, mixed $level, string $message, array $context = array())

Logs with an arbitrary level.

addLogger(string $category, LoggerInterface $logger)

addLogger

LoggerInterface
createCategory(string $category, int $level = Logger::DEBUG)

createCategory

LoggerInterface
getLogger(string $category, int $level = Logger::DEBUG)

getLogger

boolean
hasLogger(string $category)

hasLogger

removeLogger(string $category)

removeLogger

LoggerInterface[]
getLoggers()

Method to get property Loggers

setLoggers(array $loggers)

Method to set property loggers

NullLogger
getNullLogger()

getNullLogger

getIterator()

Retrieve an external iterator

boolean
offsetExists(mixed $offset)

Is a property exists or not.

mixed
offsetGet(mixed $offset)

Get a property.

void
offsetSet(mixed $offset, mixed $value)

Set a value to property.

void
offsetUnset(mixed $offset)

Unset a property.

int
count()

Count this object.

mixed
getLogPath()

Method to get property LogPath

setLogPath(mixed $logPath)

Method to set property logPath

Details

at line line 52
__construct(string $logPath)

LoggerPool constructor.

Parameters

string $logPath

at line line 66
LoggerManager emergency(string $category, string $message, array $context = array())

System is unusable.

Parameters

string $category
string $message
array $context

Return Value

LoggerManager

at line line 85
LoggerManager alert(string $category, string $message, array $context = array())

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.

Parameters

string $category
string $message
array $context

Return Value

LoggerManager

at line line 103
LoggerManager critical(string $category, string $message, array $context = array())

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters

string $category
string $message
array $context

Return Value

LoggerManager

at line line 120
LoggerManager error(string $category, string $message, array $context = array())

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters

string $category
string $message
array $context

Return Value

LoggerManager

at line line 139
LoggerManager warning(string $category, string $message, array $context = array())

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.

Parameters

string $category
string $message
array $context

Return Value

LoggerManager

at line line 155
LoggerManager notice(string $category, string $message, array $context = array())

Normal but significant events.

Parameters

string $category
string $message
array $context

Return Value

LoggerManager

at line line 173
LoggerManager info(string $category, string $message, array $context = array())

Interesting events.

Example: User logs in, SQL logs.

Parameters

string $category
string $message
array $context

Return Value

LoggerManager

at line line 189
LoggerManager debug(string $category, string $message, array $context = array())

Detailed debug information.

Parameters

string $category
string $message
array $context

Return Value

LoggerManager

at line line 206
LoggerManager log(string $category, mixed $level, string $message, array $context = array())

Logs with an arbitrary level.

Parameters

string $category
mixed $level
string $message
array $context

Return Value

LoggerManager

at line line 221
LoggerManager addLogger(string $category, LoggerInterface $logger)

addLogger

Parameters

string $category
LoggerInterface $logger

Return Value

LoggerManager

at line line 238
LoggerInterface createCategory(string $category, int $level = Logger::DEBUG)

createCategory

Parameters

string $category
int $level

Return Value

LoggerInterface

at line line 251
LoggerInterface getLogger(string $category, int $level = Logger::DEBUG)

getLogger

Parameters

string $category
int $level

Return Value

LoggerInterface

at line line 297
boolean hasLogger(string $category)

hasLogger

Parameters

string $category

Return Value

boolean

at line line 311
LoggerManager removeLogger(string $category)

removeLogger

Parameters

string $category

Return Value

LoggerManager

at line line 326
LoggerInterface[] getLoggers()

Method to get property Loggers

Return Value

LoggerInterface[]

at line line 338
LoggerManager setLoggers(array $loggers)

Method to set property loggers

Parameters

array $loggers

Return Value

LoggerManager Return self to support chaining.

at line line 353
NullLogger getNullLogger()

getNullLogger

Return Value

NullLogger

at line line 368
Traversable getIterator()

Retrieve an external iterator

Return Value

Traversable An instance of an object implementing Iterator or Traversable

at line line 380
boolean offsetExists(mixed $offset)

Is a property exists or not.

Parameters

mixed $offset Offset key.

Return Value

boolean

at line line 393
mixed offsetGet(mixed $offset)

Get a property.

Parameters

mixed $offset Offset key.

Return Value

mixed The value to return.

Exceptions

InvalidArgumentException

at line line 407
void offsetSet(mixed $offset, mixed $value)

Set a value to property.

Parameters

mixed $offset Offset key.
mixed $value The value to set.

Return Value

void

Exceptions

InvalidArgumentException

at line line 420
void offsetUnset(mixed $offset)

Unset a property.

Parameters

mixed $offset Offset key to unset.

Return Value

void

Exceptions

InvalidArgumentException

at line line 430
int count()

Count this object.

Return Value

int

at line line 440
mixed getLogPath()

Method to get property LogPath

Return Value

mixed

at line line 452
LoggerManager setLogPath(mixed $logPath)

Method to set property logPath

Parameters

mixed $logPath

Return Value

LoggerManager Return self to support chaining.