PHP code example of gobline / logwriter-file
1. Go to this page and download the library: Download gobline/logwriter-file library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gobline / logwriter-file example snippets
$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');