Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 14646  / 2 Years ago, sat, july 2, 2022, 7:14:21

I review (a fast reading) Apache Module mod_log_config and can't figure out what is the apache2 default log format and where is defined it. Any idea?



Note that what is on




/etc/apache2/conf.d/other-vhosts-access-log




is not a default option but a global option.


More From » 12.04

 Answers
6

It is clearly stated in the documetation for the TransferLog statement:




This directive has exactly the same arguments and effect as the CustomLog directive, with the exception that it does not allow the log format to be specified explicitly or for conditional logging of requests. Instead, the log format is determined by the most recently specified LogFormat directive which does not define a nickname. Common Log Format is used if no other format has been specified.




Go on to the LogFormat statement:




Default: LogFormat "%h %l %u %t "%r" %>s %b"




So if a TransferLog statement is given without any LogFormat statement the output format is as described above.



If also the TransferLog statment is missing no access log is written.


[#32372] Sunday, July 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
assionortly

Total Points: 423
Total Questions: 121
Total Answers: 115

Location: Chad
Member since Wed, Sep 30, 2020
4 Years ago
;