opxcore/log-file

The OpxCore file logger.

1.0.3 2021-02-04 16:19 UTC

This package is auto-updated.

Last update: 2024-11-12 00:27:45 UTC


README

Build Status Coverage Status Latest Stable Version Total Downloads License

Introduction

File logger is a PSR-3 compatible logger what records log messages to local files. It can be used as standalone logger or with log manager.

Installing

composer require opxcore/log-file

Using

All you need is create logger instance and specify a name of file to lag to be written. Then log your messages.

$logger = new \OpxCore\Log\LogFile('/file/name');
$logger->info('Hello world!');

File logger extends AbstractLogger. See log-interface