Download the PHP package stk2k/stream-logger without Composer
On this page you can find all versions of the php package stk2k/stream-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package stream-logger
PSR-3 logger compliant stream logger
Description
PSR-3 logger compliant stream logger
Feature
- PSR/Log compliant.
- PHP output streams
- php://stdout
- php://stderr
- php://output
- php://memory
- php://temp
- Default formatter
- Custom format with default formatter
- Custom formatter class
- toArray()/each() method to get all log messages(only for MemoryLogger).
- filter methods for buffered stream loggers.
Usage
Default format
Custom format with default formatter
Custom formatter class
You can also define your own formatter by implementing LogFormatterInterface.
Retrieving each lines
Filtering by log level
Filtering by callback
Requirement
PHP 7.0 or later
Installing stk2k/stream-logger
The recommended way to install stk2k/stream-logger is through Composer.
After installing, you need to require Composer's autoloader:
License
This library is licensed under the MIT license.
Author
Disclaimer
This software is no warranty.
We are not responsible for any results caused by the use of this software.
Please use the responsibility of the your self.
All versions of stream-logger with dependencies
PHP Build Version
Package Version
The package stk2k/stream-logger contains the following files
Loading the files please wait ....