PHPackages                             linio/microlog - 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. linio/microlog

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

linio/microlog
==============

Provides a static wrapper around monolog

3.0.0(4y ago)136.8k—3.3%2BSD-3-ClausePHPPHP ^7.4 || ^8.0CI failing

Since May 9Pushed 4y ago52 watchersCompare

[ Source](https://github.com/LinioIT/microlog)[ Packagist](https://packagist.org/packages/linio/microlog)[ Docs](https://github.com/linioit/microlog)[ RSS](/packages/linio-microlog/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (6)Used By (2)

Linio Microlog
==============

[](#linio-microlog)

Microlog - Static wrapper around Monolog

Purpose
-------

[](#purpose)

Logging is a part of all applications. Having to inject in a logging service requires a dependency that has nothing to do with the code that you are writing. Microlog was created to remove this requirement.

Microlog allows you create log entries in different contexts from any part of your application. Microlog is built with never throwing exceptions in mind. An exception caused by logging causes the normal flow of your application to fail, and logging shouldn't do that.

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

[](#installation)

To install microlog:

```
$ composer require linio/microlog

```

Basic Usage
-----------

[](#basic-usage)

```
