Home php教程 php手册 Apache配置文件里的LogLevel指令介绍

Apache配置文件里的LogLevel指令介绍

Jun 21, 2016 am 09:00 AM
child notice warn

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



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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP Notice: Use of undefined constant solution PHP Notice: Use of undefined constant solution Jun 24, 2023 pm 11:15 PM

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 How to set php not to prompt notice Feb 21, 2023 am 09:12 AM

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);".

PHP Notice: Undefined offset: 0 solution PHP Notice: Undefined offset: 0 solution Jun 22, 2023 am 08:12 AM

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

PHP Notice: Undefined variable: solution in solution PHP Notice: Undefined variable: solution in solution Jun 22, 2023 pm 10:01 PM

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 How to solve the '[Vue warn]: Error in mounted hook' error Aug 19, 2023 pm 02:39 PM

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.

PHP Notice: Undefined offset solution PHP Notice: Undefined offset solution Jun 25, 2023 am 09:51 AM

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

PHP Notice: A non well formed numeric value encountered - Solution PHP Notice: A non well formed numeric value encountered - Solution Aug 18, 2023 pm 06:52 PM

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 PHP Notice: Trying to get property of non-object Solution to PHP Notice: Trying to get property of non-object Jun 22, 2023 pm 02:43 PM

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

See all articles