Skip to content

gobline/logwriter-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Log Writer component

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

About

Write log information to a rolling file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages