基于 SeasLog 的 PHP 日志工具 SeasLogger

码农软件 · 软件分类 · 日志工具(Logging) · 2019-09-19 18:43:52

软件介绍

SeasLogger —— 一个基于 SeasLog 的、有效、快速、稳定的 PHP 日志工具

该库实现了 PSR-3 和 PSR-4

安装

安装最新版本的SeasLogger

$ composer require seasx/seas-logger

基本应用

<?php

use Seasx\SeasLogger\Logger;

$logger = new Logger();

// add records to the log
$logger->warning('Hello');
$logger->error('SeasLogger');

laravel/lumen 的应用配置 >=5.6

添加 SeasLogger 配置在 config/logging.php

'channels' => [
    ...
    'seaslog' => [
        'driver' => 'custom',
        'via' => \Seasx\SeasLogger\Logger::class,
        'path' => '/path/to/logfile',
    ],
    ...
]

修改 .env 文件来使用 seaslog

LOG_CHANNEL=seaslog

本文地址:https://codercto.com/soft/d/14959.html

A=B

A=B

Marko Petkovsek、Herbert S. Wilf、Doron Zeilberger / AK Peters, Ltd. / 1996-01 / USD 49.00

At some point, this book describes methods of solving the problem raised by Donald E. Knuth in the classical book "The Art of Computer Programming, Volume 1: Fundamental Algorithms". The main purpo......一起来看看 《A=B》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

html转js在线工具
html转js在线工具

html转js在线工具