Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How thinkphp shuts down runtime

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how thinkphp shuts down runtime". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how thinkphp shuts down runtime.

Thinkphp closes the runtime log: 1, find and open the thinkphp configuration file; 2, set the log level allowed by LOG_LEVEL to empty, then the log will not be recorded.

This article operating environment: Windows7 system, thinkphp v3.2, Dell G3 computer.

How does thinkphp shut down runtime?

Thinkphp3 closes the logging method in Runtime

If the log level allowed by LOG_LEVEL is set to empty, no log will be recorded.

Related introduction:

/ * ThinkPHP default debug mode configuration file * / defined ('THINK_PATH') or exit () / / the default settings below in debug mode can redefine debug.php override return array under the application configuration directory ('LOG_RECORD' = > false, / / logging' LOG_EXCEPTION_RECORD' = > false, / / whether or not to log exception information log / / 'LOG_LEVEL' = >' EMERG,ALERT,CRIT,ERR,WARN,NOTIC,INFO,DEBUG,SQL', / / allowed log level 'LOG_LEVEL' = >' SQL' / / allowed log level 'DB_FIELDS_CACHE' = > false, / / Field cache information' DB_DEBUG' = > false, / / enable debug mode logging SQL log 'TMPL_CACHE_ON' = > false, / / whether template compilation cache is enabled, set to false,' TMPL_STRIP_SPACE' = > false will be recompiled every time / / whether to remove html spaces and line breaks in the template file 'SHOW_ERROR_MSG' = > true, / / display error message' URL_CASE_INSENSITIVE' = > false, / / URL is case sensitive) At this point, I believe you have a deeper understanding of "how thinkphp shuts down runtime". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report