How to Print Only Tomcat Logs into Crowd's catalina.out

Still need help?

The Atlassian Community is here for you.

Ask the community

Crowd writes its logs into atlassian-crowd.log and Tomcat logs as well. However, this might only be noticed for Crowd installed in *nix based server, as in Windows these are printed in the console. Below is the start-up process written in catalina.out, where it describe the start-up process of all applications bundled inside Crowd standalone, such as Crowd OpenID and Crowd itself:

Crowd OpenID Start-up
ay 31, 2012 6:20:03 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9424
May 31, 2012 6:20:03 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 265 ms
May 31, 2012 6:20:03 PM org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
May 31, 2012 6:20:03 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 31, 2012 6:20:03 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
May 31, 2012 6:20:03 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor crowd.xml
2012-05-31 18:20:12,341 main INFO [com.atlassian.crowd.startup] System Information:
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Timezone: Malaysia Time
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Java Version: 1.6.0_31
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Java Vendor: Sun Microsystems Inc.
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	JVM Version: 20.6-b01
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	JVM Vendor: Sun Microsystems Inc.
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	JVM Runtime: Java HotSpot(TM) 64-Bit Server VM
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Username: sultan
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Operating System: Linux3.2.0-23-generic
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Architecture: amd64
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	File Encoding: UTF-8
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] JVM Statistics:
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Total Memory: 124MB
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Used Memory: 34MB
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Free Memory: 89MB
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] Runtime Information:
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Version: 2.4.2
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Build Number: 563
2012-05-31 18:20:12,342 main INFO [com.atlassian.crowd.startup] 	Build Date: 07-05-2012
2012-05-31 18:20:12,342 main INFO [crowd.console.listener.StartupListener] Upgrades not performed since the application has not been setup yet.
2012-05-31 18:20:12,368 main INFO [ContainerBase.[Catalina].[localhost].[/crowd]] org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
May 31, 2012 6:20:12 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor openidserver.xml
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/sultan/atlassian/CROWD/atlassian-crowd-2.4.2/crowd-openidserver-webapp/WEB-INF/lib/slf4j-jcl-1.0.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/sultan/atlassian/CROWD/atlassian-crowd-2.4.2/crowd-openidserver-webapp/WEB-INF/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2012-05-31 18:20:14,313 main INFO [com.atlassian.crowd.startup] Starting Crowd OpenID Server, Version: 2.4.2 (Build:#563 - 07-05-2012) 
Crowd Start-up
2012-05-31 21:17:17,314 main INFO [com.atlassian.crowd.startup] System Information:
2012-05-31 21:17:17,314 main INFO [com.atlassian.crowd.startup] 	Timezone: Malaysia Time
2012-05-31 21:17:17,314 main INFO [com.atlassian.crowd.startup] 	Java Version: 1.6.0_31
2012-05-31 21:17:17,314 main INFO [com.atlassian.crowd.startup] 	Java Vendor: Sun Microsystems Inc.
2012-05-31 21:17:17,314 main INFO [com.atlassian.crowd.startup] 	JVM Version: 20.6-b01
2012-05-31 21:17:17,314 main INFO [com.atlassian.crowd.startup] 	JVM Vendor: Sun Microsystems Inc.
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	JVM Runtime: Java HotSpot(TM) 64-Bit Server VM
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Username: sultan
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Operating System: Linux3.2.0-23-generic
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Architecture: amd64
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	File Encoding: UTF-8
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] JVM Statistics:
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Total Memory: 124MB
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Used Memory: 24MB
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Free Memory: 99MB
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] Runtime Information:
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Version: 2.4.2
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Build Number: 563
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Build Date: 07-05-2012
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Application Server: Apache Tomcat/6.0.32
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] Database Information:
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	JDBC URL: jdbc:mysql://localhost/crowddb242?autoReconnect=true&characterEncoding=utf8&useUnicode=true
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	JDBC Driver: com.mysql.jdbc.Driver
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	JDBC Username: root
2012-05-31 21:17:17,315 main INFO [com.atlassian.crowd.startup] 	Hibernate Dialect: org.hibernate.dialect.MySQL5InnoDBDialect
2012-05-31 21:17:17,316 main INFO [com.atlassian.crowd.startup] License Information:
2012-05-31 21:17:17,316 main INFO [com.atlassian.crowd.startup] 	License Server ID: BTFR-LW5O-LYA5-W1IT
2012-05-31 21:17:17,316 main INFO [com.atlassian.crowd.startup] Directories:
2012-05-31 21:17:17,359 main INFO [com.atlassian.crowd.startup] 	CROWD242 (InternalDirectory)
	JIRA504 (InternalDirectory)

This might be a redundant information as they've been written into atlassian-crowd.log.

In order to get Crowd print only Tomcat logs into catalina.out, please modify these files: 

  • <Crowd_Install_Directory>/crowd-webapp/WEB-INF/classes/log4j.properties
  • <Crowd_Install_Directory>/crowd-openidserver-webapp/WEB-INF/classes/log4j.properties
  • <Crowd_Install_Directory>/crowd-openidclient-webapp/WEB-INF/classes/log4j.properties
  • <Crowd_Install_Directory>/demo-webapp/WEB-INF/classes/log4j.properties

modify this line:

DEFAULT
log4j.rootLogger=INFO, console, crowdlog

into:

Modify it to
log4j.rootLogger=INFO, crowdlog 

Save all of the modified log4j.properties and restart Crowd.

Last modified on Apr 15, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.