bluetree-service / simple-log
Class Log libraries
0.9.0.1
2021-11-23 20:40 UTC
Requires
- php: >= 7.3
- psr/log: 1.0.*
Requires (Dev)
- php-coveralls/php-coveralls: ^2.5
- phpunit/phpunit: ^9.5
README
Builds
Coverage
Quality
Simply way to create log message written directly into file.
Usage
Save simple log message into default log directory:
LogStatic::makeLog('Some log message');
To set different log directory use that command:
LogStatic::setOption('log_path', '/var/log/simple-log');
Usage PSR-3
Save simple log message into default log directory with level error
:
LogStatic::log('error', 'Some log message');
More information in:
Change log
Install via Composer
To use packages you can just download package and pace it in your code.
{ "require": { "bluetree-service/simple-log": "version_number" } }
Project description
Used conventions
- Namespaces - each library use namespaces
- PSR-2 - PSR-2 Coding Style
- PSR-3 - PSR-3 Logger Interface
- PSR-4 - PSR-4 Autoloading Standard
- Composer - Composer usage to load/update libraries
Requirements
- PHP 7.3 or higher
Change log
All release version changes:
Change log
License
This bundle is released under the Apache license.
Apache license