Re: LogMessage not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 01.01.2016 um 03:55 schrieb Michael D. Berger:
I am converting my old complex httpd.config from 2.2 to 2.4, and
having numerous problems.  I added mod_log_debug, but I cannot get
LogMessage to work.  Here is one of numerous things I tried inside
a VirtualHost that is working up to a point:

<Location "/">
    LogMessage "herebefore02 httpdViMn" hook=type_checker expr=true
</Location>

The message does not appear the log files.  I have seen on the web
that I have to "enable" mod_log_debug, but I have not seen how to
do that.

Thanks for any advice.  Perhaps there is another way to print
things from various parts of the config file?

How is LogLevel set in your config?

Quoting from the docs, the messages logged by mod_log_debug "are logged at loglevel info." So if your server runs with "LogLevel warn", they won't be logged. In that case use

  LogLevel warn log_debug:info

instead, and start wth a simple

  <Location "/">
    LogMessage "herebefore02 httpdViMn"
  </Location>

before trying more complex constructs.

Regards,

Rainer




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux