Download the PHP package davidburger/expressive-logger without Composer
On this page you can find all versions of the php package davidburger/expressive-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download davidburger/expressive-logger
More information about davidburger/expressive-logger
Files in davidburger/expressive-logger
Download davidburger/expressive-logger
More information about davidburger/expressive-logger
Files in davidburger/expressive-logger
Vendor davidburger
Package expressive-logger
Short Description Monolog Zend Expressive integration
License Apache-2.0
Homepage https://github.com/davidburger/expressive-logger
Package expressive-logger
Short Description Monolog Zend Expressive integration
License Apache-2.0
Homepage https://github.com/davidburger/expressive-logger
Please rate this library. Is it a good library?
Informations about the package expressive-logger
Zend Expressive Monolog integration
Zend Expressive implementation of Monolog (https://github.com/Seldaek/monolog/)
Installation
Setup
- edit config/autoload/errorlog.global.php file and set what you need
Configuration directives
registerErrorHandler (default value: false)
- if enabled, the \Monolog\ErrorHandler::register() method is called after logger initialization to set php error handlers, @see http://php.net/manual/en/ref.errorfunc.php for more details
ignoredExceptionClasses (default value: [])
- Exception class names that will not be logged by defined error handlers
useIgnoreLogic (default value: false)
- false = all errors will be logged
- true = classes defined in ignoredExceptionClasses array and instances of ExpressiveLogger\Exception\NotLoggableInterface will be ignored by logger
useFacade (default value: true)
- logger will be registered for static calls - see below.
exceptionFormatterCallback (default value: null)
- callback for formatting exception message and determining context before Monolog\Logger::error($message, $context) is called
- higher priority than
messageFormatter
if both are defined - config example:
messageFormatter (default value: null)
- class used for formatting error messages before Monolog\Logger::error($message) is called (very usefull for exceptions)
- lower priority than
exceptionFormatterCallback
if both are defined - it is possible to write and use custom formatter implementing
\ExpressiveLogger\MessageFormatter\MessageFormatterInterface
- config example:
Usage
Boostrap initialization
Static calls
Monolog handlers configuration
RedisHandler
All versions of expressive-logger with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
monolog/monolog Version ^1.19
psr/log Version ^1.0
container-interop/container-interop Version ^1.1
monolog/monolog Version ^1.19
psr/log Version ^1.0
container-interop/container-interop Version ^1.1
The package davidburger/expressive-logger contains the following files
Loading the files please wait ....