ntentan/logger

This package is abandoned and no longer maintained. The author suggests using the ntentan/logger package instead.

A static PSR-3 logger wrapped around the super cool monolog.

Maintainers

👁 ekowabaka

Package info

github.com/ntentan/logger

pkg:composer/ntentan/logger

Statistics

Installs: 832

Dependents: 2

Suggesters: 0

Stars: 1

Open Issues: 0

v0.1.1 2014-12-21 00:24 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 798b691daff9acd5738d658e616c49bcf8b4d9b4

  • Ekow Abaka Ainooson <jainooson.woop@gmail.com>

This package is auto-updated.

Last update: 2022-10-07 17:38:15 UTC


README

A static logger wrapped around the super awesome monolog logging framework. The whole idea behind the wrapper is to minimize the setup code and expose logging settings. By that approach applications can use external configuration files to configure the logging backend (this is however yet to be implemented). The ntentan logger class tries to be compatible with the interfaces defined in the PSR-3 specification.

Installation

You can install Logger through composer since its available on packagist (ntentan/logger).

Example

To use the ntentan logger.

<?php

use ntentan\logger\Logger;

// Initialize the logger
Logger::init("/path/to/log/file.log");

// Write some logs
Logger::log(Logger::DEBUG, "Hello!");
Logger::warning("World!");