lf4php/lf4php-log4php

This is an lf4php binding for log4php.

Installs: 1 739

Dependents: 6

Watchers: 1

Language: PHP

2.1.1 2014-10-25 22:10 UTC

README

This is a log4php binding for lf4php.

Using lf4php-log4php

Log4php configuration

<?php
Logger::configure('config.xml');

lf4php will work properly without any configuration steps.

Logging

<?php
$logger = LoggerFactory::getLogger(__CLASS__);
$logger->info('Message');
$logger->debug('Hello {}!', array('John'));
$logger->error(new \Exception());

History

2.1

MDC support.

2.0

Updated lf4php (3.0.x)