PHPackages                             dremecker/bfw-advanced-log - 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. dremecker/bfw-advanced-log

Abandoned → [dremecker/bfw-logger](/?search=dremecker%2Fbfw-logger)Library[Logging &amp; Monitoring](/categories/logging)

dremecker/bfw-advanced-log
==========================

Advanced log module for BFW framework

1.0.1(10y ago)016The MIT License (MIT)PHPPHP &gt;=5.3.0

Since Mar 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/dremecker/bfw-advanced-log)[ Packagist](https://packagist.org/packages/dremecker/bfw-advanced-log)[ Docs](https://github.com/dremecker/bfw-logger)[ RSS](/packages/dremecker-bfw-advanced-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

\#BFW Logger Advanced log module for BFW framework

BFW Logger manage your log records by sending its into log files and allow you to rotate, compress and flush your logs (all fully configurable). This module implements the PSR-3 interface and default classes, so you can use PSR-3 log levels and PSR-3 logger interface methods.

\##Before installing

You must have installed BFW framework before using this log module. You can find more information about BFW here :

---

\##Installation

We recommand using composer for installing "BFW Logger". You can get composer by executing this command line :

```
$ curl -sS https://getcomposer.org/installer | php
```

Create (or open) the "composer.json" file at the root of your project and add :

```
{
    "require": {
        "dremecker/bfw-advanced-log": "@stable"
    }
}
```

Then launch module installation by executing:

```
$ php composer.phar install
```

And launch BFW module loading :

```
$ sh ./vendor/bin/bfw_loadModules
```

\##Configuring BFW Logger

After a successfull install, you will find in "/configs/bfw-advanced-log" two files that will help you to configure BFW Logger.

- "configs.php" is used to configure options for the logger and the log handlers.
- "channels" allow you to create an array of channels with : channel names as key (in string), and channel log handler options as value (in \\BFWLog\\logOptions).

This files are commented and full of multiple examples, so we will not go further for the moment.

---

\##Using BFW Logger

The logger instance is initialised for each page request. You can access it with:

```
