Download the PHP package lswl/laravel-log without Composer
On this page you can find all versions of the php package lswl/laravel-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lswl/laravel-log
More information about lswl/laravel-log
Files in lswl/laravel-log
Download lswl/laravel-log
More information about lswl/laravel-log
Files in lswl/laravel-log
Vendor lswl
Package laravel-log
Short Description Laravel log.
License MIT
Homepage https://linshaowl.com/
Package laravel-log
Short Description Laravel log.
License MIT
Homepage https://linshaowl.com/
Please rate this library. Is it a good library?
Informations about the package laravel-log
介绍
环境变量值参考:env
安装配置
使用以下命令安装:
快速使用
- 配置环境变量
LSWL_LOG_DEBUG=false
时debug
级别日志不写入(默认为fasle
)- 方法介绍:
dir(string $dir)
设置日志保存路径,相对于storage/logs
name(string $dir)
设置日志名称(默认为laravel.log
)withDateToDir(bool $isBefore = true, string $format = 'Ymd')
给路径添加日期withDateToName(bool $isBefore = true, string $format = 'Ymd')
给名称添加日期withRequestInfo(bool $with = true)
日志添加请求消息withMessageLineBreak(bool $with = true)
日志添加消息换行throwable(Throwable $e, array $context = [])
记录异常日志
- 书写业务代码
业务代码:
All versions of laravel-log with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.3|^8.0
ext-mbstring Version *
ext-json Version *
lswl/laravel-support Version ^8.0
ext-mbstring Version *
ext-json Version *
lswl/laravel-support Version ^8.0
The package lswl/laravel-log contains the following files
Loading the files please wait ....