Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
tutorial:adm:czechidm_installation_win [2021/12/07 13:33] – Uprava formatovani v sekci nastaveni logback spring urbanltutorial:adm:czechidm_installation_win [2021/12/10 17:02] – [Change Tomat logging properties] Presunuta konfigurace logovani tocmatu do navodu pro instalaci urbanl
Line 32: Line 32:
   * Add ''-Dspring.profiles.active=production''  to the ''Java options''.   * Add ''-Dspring.profiles.active=production''  to the ''Java options''.
   * Add ''-Djava.security.egd=file:/dev/urandom''  to the ''Java options''.   * Add ''-Djava.security.egd=file:/dev/urandom''  to the ''Java options''.
- 
-==== Change Tomat logging properties ==== 
- 
- 
- 
-In order to set-up log rotation we need stop logging to stdout and start logging to catalina.log . 
- 
-Make these changes in file ''C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\logging.properties'': Comment out console handler. We don't want tomcat to log to stdout or stderr. 
-<code> 
-handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler 
-#handlers =  java.util.logging.ConsoleHandler 
- 
-.handlers = 1catalina.org.apache.juli.AsyncFileHandler 
-#.handlers = java.util.logging.ConsoleHandler, 
- 
-#java.util.logging.ConsoleHandler.level = FINE 
-#java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter 
- 
-</code> 
- 
-In 1catalina file handler change log level to "INFO" and prefix from "catalina" to "tomcat". Also set property rotable to "false". Tomcat write to this file only when starting or shutting down. 
- 
-<code> 
-#1catalina.org.apache.juli.AsyncFileHandler.level = FINE 
-#1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina. 
-1catalina.org.apache.juli.AsyncFileHandler.level = INFO 
-1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs 
-1catalina.org.apache.juli.AsyncFileHandler.prefix = tomcat 
-1catalina.org.apache.juli.AsyncFileHandler.rotatable = false 
-1catalina.org.apache.juli.AsyncFileHandler.suffix = .log 
- 
-</code> 
- 
  
  
  • by fiserp