An open API service indexing awesome lists of open source software.

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

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.