PHPackages                             expresslogger/expresslogger - 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. expresslogger/expresslogger

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

expresslogger/expresslogger
===========================

ExpressLogger is one of the fastest Psr 3 logger implementations

2.0.1(4y ago)15MITPHPPHP ^8.0 || ^8.1

Since May 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kderyabin/ExpressLogger)[ Packagist](https://packagist.org/packages/expresslogger/expresslogger)[ RSS](/packages/expresslogger-expresslogger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

ExpressLogger
=============

[](#expresslogger)

ExpressLogger is a PSR3 implementation which cares of the execution time of your application. Implemented solution is not new but simple and powerful and makes the ExpressLogger one of the fastest logging solutions.

Why it's so fast ?
==================

[](#why-its-so-fast-)

ExpressLogger is designed to have the least possible impact on the performance of your application.

How it works
============

[](#how-it-works)

Logging strategy
----------------

[](#logging-strategy)

ExpressLogger comes with 2 modes or logging strategies : **express** (default mode) and **standard**. By the way, you can implement and use your own strategy.

### Standard Mode

[](#standard-mode)

In **Standard** mode the logger writes logs in a conventional way. It applies filters, formats the message and then sends it to the destination. All these operations have a cost, and the cost is the execution time of your app.

### Express Mode (default)

[](#express-mode-default)

In **Express** mode, to reduce the processing time of a message (filtering, formatting, writing), the logger delays logs writing till the end of the execution of your app. On application shutdown it flushes the emitted content to the user and starts logs processing. Express logging strategy reduces drastically the impact on your application's performance.

Installation
------------

[](#installation)

Composer

```
$ composer require expresslogger/expresslogger
```

Usage
-----

[](#usage)

Basic usage. Use default logger settings to log a message into some file in json format.

```
