Home > PHP Framework > ThinkPHP > How to close thinkphp runtime

How to close thinkphp runtime

藏色散人
Release: 2021-12-22 11:21:33
Original
3638 people have browsed it

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.

How to close thinkphp runtime

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

How to close thinkphp 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区分大小写
);
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template