phyrexia / log
2.2.1
2019-09-01 22:07 UTC
Requires
- php: >=5.3
- psr/log: ^1.0
Provides
README
PHP PSR-3 兼容的日志记录器
需求
- PHP >= 5.3
- Composer psr/log ^1.0
安装
通过 Composer 直接安装
$ composer require phyrexia/log
基本用法
<?php require 'vendor/autoload.php'; use Phyrexia\Log\FileLogger; //Instantiate a FileLogger logger $logger = new FileLogger('/tmp/some_file.log'); //Log an error $logger->error('An error occured! :('); //Log an info $logger->info('It works! :)'); ...