Introduction to the LogLevel instructions in the Apache configuration file

Source: Internet
Author: User
Tags log socket

LogLevel directives

Description

Control the verbosity of the error log

Grammar:

LogLevel level

Default value:

LogLevel warn

Context:

Server configuration, virtual host

State:

Core

Module:

Core

LogLevel is used to adjust the verbosity of the information that is recorded in the error log. (see errorlog directives). You can select the following levels in descending order of importance:

Level

Description

Example

Emerg

Emergency-the system is not available.

"Child cannot open lock file. Exiting "

Alert

Immediate measures must be taken.

"Getpwuid:couldn ' t determine user name from UID"

Crit

Fatal condition.

"Socket:failed to get a socket, exiting child"

Error

Error condition.

"Premature end of script headers"

Warn

Warning condition.

"Child process 1234 did not exit, sending another Sighup"

Notice

General important situation.

"Httpd:caught Sigbus, attempting to dump core in ..."

Info

General information.

"Server seems busy, (you may need to increase startservers, or min/maxspareservers) ..."

Debug

Error level Information

"Opening config file ..."

When a specific level is specified, all information that is higher than it is reported simultaneously. For example, when LogLevel info is specified, all notice and warn levels of information are also recorded.

It is recommended that you use at least the crit level.

Examples are as follows: LogLevel notice



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.