PHPackages                             jlaso/simple-logger - 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. jlaso/simple-logger

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

jlaso/simple-logger
===================

A simple logger for your PHP apps

1.0.3(9y ago)471MITPHPPHP &gt;=5.4

Since Oct 18Pushed 9y ago3 watchersCompare

[ Source](https://github.com/jlaso/simple-logger)[ Packagist](https://packagist.org/packages/jlaso/simple-logger)[ Docs](https://github.com/jlaso/simple-logger)[ RSS](/packages/jlaso-simple-logger/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/4877689cda7840a0bd80cf131c32c9efde6854e6c53a6069cebb2e84e9f38cc1/68747470733a2f2f7472617669732d63692e6f72672f6a6c61736f2f73696d706c652d6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jlaso/simple-logger)

simple-logger
=============

[](#simple-logger)

A simple logger system

Installation
============

[](#installation)

You need only to require this package in your project `composer require jlaso/simple-logger`

Configuration (optional)
========================

[](#configuration-optional)

In order to let know the library where can put its database file and other things related with setup you can copy the distribution file `config-simple-logger.yml.dist` in the root of your project with the `config-simple-logger.yml`

This file contains:

```
# vendor/jlaso/simple-logger/config-simple-logger.yml.dist
logger:
    path: "%project_dir%/cache/logger-%date%.log"
    levels: error,info,debug
    date_format: "Y-m-d"

```

Commands
========

[](#commands)

In order to check log file you can use `src/console log:filter [--with=word1,word2,...] [--levels=error,info] [--date-from="2016-01-01 00:00:00"]`

Running the example
===================

[](#running-the-example)

Go to terminal and start the demo example `php demo.php`

```
