Force Apache updates log file path without restarting in WAMP

How can I get Apache (part of WAMP ) to write new logs to new log files without restarting the server?


In Apache2 \ conf \ httpd.conf I updated the path for ErrorLogand directives CustomLog.

  • before:

    ErrorLog ../logs/a.log
    ...
    CustomLog ../logs/b.log common
    
  • after

    ErrorLog ../logs/a2.log
    ...
    CustomLog ../logs/b2.log common
    

Directives LogLeveland have LogFormatnot been changed.

, , ( , - , , ), . , , 20 ( , , ). , !

:

  • ../logs/a2.log = > ../logs/a3.log
  • ../logs/b2.log = > ../logs/b3.log

( ../logs/a2.log ../logs/b2.log).

2 , , , , :

  • httpd.conf, Apache ( WAMP).
  • ErrorLog CustomLog ( cmd, httpd.conf).

  • WAMP5 1.6.6 ( )
    • Apache 2.0.59 ( 9 )
  • , .
+4
2

Windows, apache.exe -k restart , 30 .

, , , , , Windows. HTTP-. .

+1

, , api apache.

log4j, URL Log4j

monitorInterval Log4j. ( > 5) , / , , ,

+1

Source: https://habr.com/ru/post/1626548/


All Articles