请问think-orm怎么打印sql到日志文件

changup

问题描述

请问think-orm怎么打印sql到日志文件

2024-04-19
后来发现版本不匹配会不打印sql,但其他日志打印,记录下:

"php": ">=7.2",
"workerman/webman-framework": "1.4.3",
"monolog/monolog": "^2.0",
"topthink/think-template": "^2.0",
"topthink/think-validate": "^2.0",
"workerman/crontab": "^1.0",
"webman/push": "^1.0",
"webman/console": "1.0.27",
"webman/think-orm": "^1.1",
"webman/log": "1.0.1"
2151 1 1
1个回答

damao

执行 composer require webman/log,restart重启就自动记录SQL日志了

  • chengzhigang 2023-05-24

    每次记录日志,日志后面都有两个空数组,怎么去掉呀?看着别扭

  • roczyl 2023-05-25

    可以在哪个配置里面暂时关闭记录吗

年代过于久远,无法发表回答
×
🔝