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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver CS6
Visual web development tools