https://github.com/krakphp/psr-log-util
PSR Log Utilities
https://github.com/krakphp/psr-log-util
log log-util logging psr-3
Last synced: about 1 year ago
JSON representation
PSR Log Utilities
- Host: GitHub
- URL: https://github.com/krakphp/psr-log-util
- Owner: krakphp
- Created: 2019-03-15T00:38:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T00:44:16.000Z (over 7 years ago)
- Last Synced: 2025-01-29T06:52:27.634Z (over 1 year ago)
- Topics: log, log-util, logging, psr-3
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PSR Log Util
This library contains a set of utilities and decorators for PSR-3 Compatible loggers.
## Installation
Install with composer at `krak/psr-log-util`
## Usage
### TemplateLogger
The TemplateLogger is a decorator that allows you to wrap a template around your log messages.
```php
info("Hi");
// should output something like: Acme: Hi
```
This can be very useful for prefixing certian logs to make them easier to search later on.