PHPackages                             shikachuu/jogger - 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. shikachuu/jogger

Abandoned → [shikachuu/picolog](/?search=shikachuu%2Fpicolog)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

shikachuu/jogger
================

PSR-3 compatible logger library for PHP mostly based on a Go project rs/zerolog.

0.2.5(5y ago)25.1kBSL-1.0PHPPHP &gt;=7.4

Since Oct 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Shikachuu/JoggerPHP)[ Packagist](https://packagist.org/packages/shikachuu/jogger)[ Docs](https://github.com/Shikachuu/JoggerPHP)[ RSS](/packages/shikachuu-jogger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

Jogger 🏃
========

[](#jogger-running)

[![Codecov](https://camo.githubusercontent.com/18101cc01d8fbf63211a3881be06f52ae336a9c8095f6b353fa9b54098c8ce6b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f5368696b61636875752f4a6f67676572504850)](https://camo.githubusercontent.com/18101cc01d8fbf63211a3881be06f52ae336a9c8095f6b353fa9b54098c8ce6b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f5368696b61636875752f4a6f67676572504850) [![GitHub](https://camo.githubusercontent.com/266be1a09bf07df21a0bcdf6f6e077be4a3436b65d3197eaf003d47592b44d0a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f5368696b61636875752f4a6f67676572504850)](https://camo.githubusercontent.com/266be1a09bf07df21a0bcdf6f6e077be4a3436b65d3197eaf003d47592b44d0a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f5368696b61636875752f4a6f67676572504850) [![Packagist Version](https://camo.githubusercontent.com/28ac2dd718444c342402dd6dd3695da45ec03548501818c8463f55aa5bb2fa7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7368696b61636875752f6a6f67676572)](https://camo.githubusercontent.com/28ac2dd718444c342402dd6dd3695da45ec03548501818c8463f55aa5bb2fa7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7368696b61636875752f6a6f67676572)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#--)

PSR-3 compatible, opinionated logger library for PHP mostly based on the Go project [rs/zerolog](https://github.com/rs/zerolog)and the PHP project [Seldaek/monolog](https://github.com/Seldaek/monolog).

This library has been built, because I mostly felt like interpolation for json log strings can't provide as much flexibility, and are harder to filter on than additional fields. Since the json syntax provides it, we should use it's full potential.

Install
-------

[](#install)

```
composer require shikachuu/jogger
```

Features and Examples
---------------------

[](#features-and-examples)

### Time formats:

[](#time-formats)

Jogger supports 2 types of date formats:

- ISO8601 `$logger->setTimeFormatISO8601();`
- Unix timestamp `$logger->setTimeFormatUnix();`

### Additional, chained fields:

[](#additional-chained-fields)

Jogger, just like zerolog, supports a number of primitive types (int, float...) and non-primitive types (currently only array) as additional fields next to the almost standard `message` and `timestamp`. These fields are also chainable (they have fluent return values).

```
