Documentation

LoggerBuilder
in package

Iteratively configure a logger

Use this to allow creating complex logger setups from a config file or similar source.

Tags
author

Ralf Lang lang@b1-systems.de

category

Horde

license

http://www.horde.org/licenses/bsd BSD

Table of Contents

$logger  : Logger
$loglevels  : LogLevels
__construct()  : mixed
build()  : Logger
Return a logger
reset()  : self
Create an all-new logger instance without any handler or filter
withGlobalFilter()  : self
Add a filter
withLogHandler()  : self
Add a log handler to a logger
withLogLevel()  : self
Create a custom log level for the current logger

Properties

Methods

reset()

Create an all-new logger instance without any handler or filter

public reset([LogLevels $loglevels = null ]) : self
Parameters
$loglevels : LogLevels = null
Return values
self

withLogLevel()

Create a custom log level for the current logger

public withLogLevel(int $criticality, string $name) : self
Parameters
$criticality : int
$name : string
Return values
self

Search results