PHPackages                             firehed/simplelogger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. firehed/simplelogger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

firehed/simplelogger
====================

Logger compatible with PSR-3. Supports writing to files, STDOUT, STDERR, and syslog. Also provides a chain logger which can write to multiple destinations. Allows customizable and pluggable formats, including logfmt.

3.0.0(1y ago)8109.9k↑17.3%2[3 issues](https://github.com/Firehed/simpleLogger/issues)[1 PRs](https://github.com/Firehed/simpleLogger/pulls)1MITPHPPHP ^8.1CI passing

Since Jan 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Firehed/simpleLogger)[ Packagist](https://packagist.org/packages/firehed/simplelogger)[ Docs](https://github.com/firehed/simpleLogger)[ RSS](/packages/firehed-simplelogger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (14)Used By (1)

SimpleLogger
============

[](#simplelogger)

[![Test](https://github.com/Firehed/simpleLogger/workflows/Test/badge.svg)](https://github.com/Firehed/simpleLogger/actions?query=workflow%3ATest)[![Lint](https://github.com/Firehed/simpleLogger/workflows/Lint/badge.svg)](https://github.com/Firehed/simpleLogger/actions?query=workflow%3ALint)[![Static analysis](https://github.com/Firehed/simpleLogger/workflows/Static%20analysis/badge.svg)](https://github.com/Firehed/simpleLogger/actions?query=workflow%3A%22Static+analysis%22)[![codecov](https://camo.githubusercontent.com/bea74851743a1281fcd15817b842bdeae2b60ce017295eb61e2ea5fba8ac8658/68747470733a2f2f636f6465636f762e696f2f67682f466972656865642f73696d706c654c6f676765722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/Firehed/simpleLogger)

SimpleLogger is a PHP library to write logs. It has simple, straightforward defaults with additional customization hooks.

- Drivers: Syslog, stdout, stderr and text file
- Compatible with [PSR-3 Standard Logger Interface](http://www.php-fig.org/psr/psr-3/)
- Requirements: PHP &gt;= 8.1
- License: MIT

Usage
-----

[](#usage)

### Installation

[](#installation)

```
composer require firehed/simplelogger
```

### Syslog

[](#syslog)

Send log messages to Syslog:

```
