What is the difference between localhost.log, catalina.log, manager.log, host-manager.log?

I use Tome. The logs folder contains files such as

  • localhost_access_log.2016-12-02.txt
  • localhost.2016-12-02.log
  • catalina.2016-12-02.log
  • host manager.2016-12-02.log
  • manager.2016-12-02.log

I was looking for an explanation in the documentation, but could find something. I understand that these files localhostonly record activity of the "host computer". It is right? What is the difference between these files? Do they record different types of messages?

+4
source share
1 answer

you can find all the details in conf / logging.properties and conf / server.xml for the access log.

In short

  • catalina - ,
  • localhost_access ( , server.xml) (= , , httpd),
  • localhost , ,
  • - -.

, logging.propertues:

# log on the host "localhost"
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].xxx

# log on the host "localhost" for the webapp foo
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/foo].xxx

:

org.apache.catalina.core.ContainerBase.[${engine}].[${host}].[${context}]

: ${context} "/" .

ServletContext

https://tomcat.apache.org/tomcat-8.5-doc/logging.html

+7

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


All Articles