Download the PHP package pandora-una/expressive-logger without Composer
On this page you can find all versions of the php package pandora-una/expressive-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pandora-una/expressive-logger
More information about pandora-una/expressive-logger
Files in pandora-una/expressive-logger
Download pandora-una/expressive-logger
More information about pandora-una/expressive-logger
Files in pandora-una/expressive-logger
Vendor pandora-una
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 ^3.4
psr/log Version ^3.0
psr/container Version ^2.0
monolog/monolog Version ^3.4
psr/log Version ^3.0
psr/container Version ^2.0
The package pandora-una/expressive-logger contains the following files
Loading the files please wait ....