Home >PHP Framework >ThinkPHP >How to close thinkphp runtime
How to turn off runtime logs in thinkphp: 1. Find and open the thinkphp configuration file; 2. Set the log level allowed by LOG_LEVEL to empty, then no logs will be recorded.
The operating environment of this article: Windows 7 system, thinkphp v3.2 version, Dell G3 computer.
How to turn off runtime in thinkphp?
thinkphp3 Close the log method in Runtime
Set the log level allowed by LOG_LEVEL to empty, otherwise it will not Will record logs
Related introduction:
/** * ThinkPHP 默认的调试模式配置文件 */ defined('THINK_PATH') or exit(); // 调试模式下面默认设置 可以在应用配置目录下重新定义 debug.php 覆盖 return array( 'LOG_RECORD' => false, // 进行日志记录 'LOG_EXCEPTION_RECORD' => false, // 是否记录异常信息日志 //'LOG_LEVEL' => 'EMERG,ALERT,CRIT,ERR,WARN,NOTIC,INFO,DEBUG,SQL', // 允许记录的日志级别 'LOG_LEVEL' => 'SQL', // 允许记录的日志级别 'DB_FIELDS_CACHE' => false, // 字段缓存信息 'DB_DEBUG' => false, // 开启调试模式 记录SQL日志 'TMPL_CACHE_ON' => false, // 是否开启模板编译缓存,设为false则每次都会重新编译 'TMPL_STRIP_SPACE' => false, // 是否去除模板文件里面的html空格与换行 'SHOW_ERROR_MSG' => true, // 显示错误信息 'URL_CASE_INSENSITIVE' => false, // URL区分大小写 );
Recommended study: "The latest 10 thinkphp video tutorials"
The above is the detailed content of How to close thinkphp runtime. For more information, please follow other related articles on the PHP Chinese website!