Download the PHP package simpliste/log without Composer
On this page you can find all versions of the php package simpliste/log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download simpliste/log
More information about simpliste/log
Files in simpliste/log
Download simpliste/log
More information about simpliste/log
Files in simpliste/log
Vendor simpliste
Package log
Short Description Implementation of the LoggerAwareInterface
License MIT
Homepage https://github.com/simpliste
Package log
Short Description Implementation of the LoggerAwareInterface
License MIT
Homepage https://github.com/simpliste
Please rate this library. Is it a good library?
Informations about the package log
simpliste/log
LoggerAwareTrait implementation of the LoggerAwareInterface.
With the LoggerAwareTrait you can use log functions without knowing or the logger is set. When the logger is not set a NullLogger is returned so that the code does not break.
Installation
You can install simpliste log through Composer:
You can combine this LoggerAwareTrait with anything that implements the Psr\Log\LoggerInterface. For example Monolog can be used.
Usage
The above example will output:
Example without an logger set
Example with an logger set
Started running
All versions of log with dependencies
PHP Build Version
Package Version
The package simpliste/log contains the following files
Loading the files please wait ....