The Log Component
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
src
tests
.gitattributes
.gitignore
.scrutinizer.yml
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

miBadger.Log

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight

The Log Component.

PSR-3

This package implements the PSR-3 logger interfaces so you can easily swap this package with other PSR-3 compatible package. Check the official PHP Framework Interop Group website for information about the PSR recommendations.

Example

<?php

use miBadger\Log\Logger;
use miBadger\Log\LogHandler;

/**
 * Create a new logger.
 */
$logger = new Logger();

/**
 * Create a new log handler.
 */
$logHandler = new LogHandler();

/**
 * Attach a log handler.
 */
$logger->attach($logHandler);

/**
 * Log an informational message.
 */
$logger->info('message');