当前位置:网站首页>wokerman 自定义写入日志文件
wokerman 自定义写入日志文件
2022-07-25 20:35:00 【owenzhang24】
日志类添加一个自定义日志
config/log.php
// applepaylog通道 'applepaylog' => [ // 处理默认通道的handler,可以设置多个 'handlers' => [ [ // handler类的名字 'class' => Monolog\Handler\RotatingFileHandler::class, // handler类的构造函数参数 'constructor' => [ runtime_path() . '/logs/applepaylog.log', Monolog\Logger::DEBUG, ], // 格式相关 'formatter' => [ // 格式化处理类的名字 'class' => Monolog\Formatter\LineFormatter::class, // 格式化处理类的构造函数参数 'constructor' => [ null, 'Y-m-d H:i:s', true], ], ] ], ],调用使用
(Log::channel('applepaylog'))->info('EXPIRED', (array)$jws);
边栏推荐
- Go language go language built-in container
- securecrt乱码解决方法[通俗易懂]
- [today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
- Proxy实现mysql读写分离
- 10. < tag dynamic programming and subsequence, subarray> lt.53. maximum subarray and + lt.392. Judge subsequence DBC
- Learn FPGA from the bottom structure (16) -- customization and testing of pll/mmcm IP
- Volcanic engine Xiang Liang: machine learning and intelligent recommendation platform multi cloud deployment solution officially released
- 【高等数学】【8】微分方程
- 【高等数学】【4】不定积分
- [today in history] July 8: PostgreSQL release; SUSE acquires the largest service provider of k8s; Activision Blizzard merger
猜你喜欢
![Summarize the level of intelligent manufacturing discussion [macro understanding]](/img/84/3addabdf857c562535a4085782d3e8.png)
Summarize the level of intelligent manufacturing discussion [macro understanding]

Volcanic engine Xiang Liang: machine learning and intelligent recommendation platform multi cloud deployment solution officially released
![[today in history] July 5: the mother of Google was born; Two Turing Award pioneers born on the same day](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 5: the mother of Google was born; Two Turing Award pioneers born on the same day

毕业从事弱电3个月,我为什么会选择转行网络工程师

Cloud native, Intel arch and cloud native secret computing three sig online sharing! See you today | issues 32-34

Recommended books | essentials of industrial digital transformation: methods and Practice
![[advanced mathematics] [1] function, limit, continuity](/img/c5/f9fd3814a61d0fba24b37253c7e51c.png)
[advanced mathematics] [1] function, limit, continuity

Learn FPGA from the bottom structure (16) -- customization and testing of pll/mmcm IP

Mobile web layout method

Prescan quick start to master Lesson 19: prescan actuator configuration, track synchronization and non configuration of multiple tracks
随机推荐
【云原生 | 从零开始学Kubernetes】八、命名空间资源配额以及标签
Link list of sword finger offer question bank summary (III) (C language version)
【高等数学】【3】微分中值定理与导数的应用
Three skills of interface request merging, and the performance is directly exploded!
[onnx] export pytorch model to onnx format: support multi parameter and dynamic input
[workplace rules] it workplace rules | poor performance
使用cookie登录百度网盘(网站使用cookie)
[today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
Vivo official website app full model UI adaptation scheme
Log in to Baidu online disk with cookies (websites use cookies)
Aircraft PID control (rotor flight control)
Online random coin tossing positive and negative statistical tool
[today in history] July 19: the father of IMAP agreement was born; Project kotlin made a public appearance; New breakthroughs in CT imaging
网络RTK无人机上机测试[通俗易懂]
TGA file format (waveform sound file format)
KEGG通路的从属/注释信息如何获取
【高等数学】【4】不定积分
[advanced mathematics] [4] indefinite integral
各厂商网络虚拟化的优势
The uniapp project starts with an error binding Node is not a valid Win32 Application ultimate solution