Apache配置文件里的LogLevel指令介绍
LogLevel 指令
说明:
控制错误日志的详细程度
语法:
LogLevel 级别
默认值:
LogLevel warn
上下文:
服务器配置, 虚拟主机
状态:
核心
模块:
core
LogLevel用于调整记于错误日志中的信息的详细程度。(参阅ErrorLog指令)。可以选择下列级别,依照重要性降序排列:
Level
Description
Example
emerg
紧急 - 系统无法使用。
"Child cannot open lock file. Exiting"
alert
必须立即采取措施。
"getpwuid: couldn't determine user name from uid"
crit
致命情况。
"socket: Failed to get a socket, exiting child"
error
错误情况。
"Premature end of script headers"
warn
警告情况。
"child process 1234 did not exit, sending another SIGHUP"
notice
一般重要情况。
"httpd: caught SIGBUS, attempting to dump core in ..."
info
普通信息。
"Server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers)..."
debug
出错级别信息
"Opening config file ..."
当指定了特定级别时,所有级别高于它的信息也会同时报告。比如说,当指定了LogLevel info时,所有 notice和warn级别的信息也会被记录。
建议至少要使用crit级别。
示例如下:LogLevel notice

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

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHPNotice: Useofundefinedconstant Solution During the PHP development process, you may encounter the error message "PHPNotice: Useofundefinedconstant". This is usually due to the use of undefined constants in the code. Constants should be defined first before they can be referenced correctly. If they are not defined or are spelled incorrectly, the above error message will appear. Here are some ways to solve this problem

How to set php not to prompt notice: 1. Change "error_reporting" in the "php.ini" file to "error_reporting = E_ALL & ~E_NOTICE"; 2. Add the code to the specified page as "error_reporting(E_ALL ^ E_NOTICE);".

In PHP development, sometimes when we run the code, the prompt "PHPNotice: Undefinedoffset:0" will appear. This prompt is usually accompanied by an array out-of-bounds error. When the array subscript exceeds the specified range, PHP will set its value to NULL by default and give a notification message. Although this prompt message does not affect the execution of the program, it will affect the running efficiency of the program and the readability of the code. So, what should we do when encountering this situation? Here are some solutions

For PHP developers, encountering the "Undefinedvariable" warning message is a very common thing. This situation usually occurs when trying to use undefined variables, which will cause the PHP script to fail to execute normally. This article will introduce how to solve the problem of "PHPNotice:Undefinedvariable: in solution". Cause of the problem: In a PHP script, if a variable is not initialized or assigned a value, "Un
![How to solve the '[Vue warn]: Error in mounted hook' error](https://img.php.cn/upload/article/000/000/164/169242716028580.jpg?x-oss-process=image/resize,m_fill,h_207,w_330)
Methods to solve the "[Vuewarn]:Errorinmountedhook" error During the development process using Vue.js, we sometimes encounter the following error message: "[Vuewarn]:Errorinmountedhook". This error is usually caused by the mounted hook function of the component. caused by the problem. This article will introduce some methods to solve this error and give corresponding code examples. 1. Cause analysis in Vue.

PHPNotice:Undefinedoffset is a common PHP program error. It means that the program attempts to use a subscript that does not exist in the array, causing the program to fail to run normally. This error usually occurs when the PHP interpreter displays the following warning message: Notice: Undefinedoffset. Here are some ways to resolve the PHPNotice:Undefinedoffset error: Check the code First, it should

PHPNotice:Anonwellformednumericvalueencountered-Solution During the development process of using PHP, you often encounter some warning and error messages. One of the common warnings is "Notice:Anonwellformednumericvalueencountered". This warning usually appears when trying to convert a string to a numeric value. in the text,

Solution to PHPNotice: Tryingtogetpropertyofnon-object In the process of writing code in PHP, we may encounter the error message "Tryingtogetpropertyofnon-object". This error message usually occurs because we are trying to access a non-existent object property, causing an error in the code. This error message usually appears in the following situations: The object does not exist
