sfLogRollerPlugin - 1.0.0

A log rolling plugin.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

Introduction

The sfLogRollerPlugin provides a file logger which 'roles' as time progresses.

How to use

Follow these simple steps:

  • Install the plugin
  • Add the logger to your factories.yml, like so:

    logger:
      class: usFileLogRoller
      param:
        level: err
        file: %SF_LOG_DIR%/%SF_APP%_%SF_ENVIRONMENT%.log
        date_format: Y-m-d``