gobline/logwriter-file

File Log Writer component

v2.0.1 2015-12-19 23:57 UTC

This package is auto-updated.

Last update: 2024-11-12 19:46:40 UTC


README

Gobline\Logger\Writer\FileLogWriter writes log information to a rolling file.

Usage

$dir = './logs';
$filename = 'logfile';
$rollTime = Gobline\Logger\Writer\FileLogWriter::ROLL_DAILY;
$rollSize = '10MB';

$writer = new Gobline\Logger\Writer\FileLogWriter($dir, $filename, $rollTime, $rollSize);

$writer->info('hello world');

Installation

You can install the File Log Writer using the dependency management tool Composer. Run the require command to resolve and download the dependencies:

composer require gobline/logwriter-file