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

https://github.com/phpdevcommunity/psr3-logger

A straightforward logging library for PHP that implements PSR-3, making it easy to integrate logging into your project.
https://github.com/phpdevcommunity/psr3-logger

Last synced: 3 months ago
JSON representation

A straightforward logging library for PHP that implements PSR-3, making it easy to integrate logging into your project.

Awesome Lists containing this project

README

          

# PHP Logger PSR-3

A straightforward logging library for PHP that implements PSR-3, making it easy to integrate logging into your project.

## Installation

Install via [Composer](https://getcomposer.org/):

```bash
composer require phpdevcommunity/psr3-logger
```

## Requirements

- PHP 7.4 or higher

## Usage

Here's how to set up and use the logger:

```php
log(LogLevel::EMERGENCY, 'An error has occurred');
```

## Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to help improve the library.

## License

This library is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).