Untergeordnete Seiten
  • Crowd Dokumentation - Wie nur Tomcat-Logs in Crowds catalina.out geschrieben werden
Zum Ende der Metadaten springen
Zum Anfang der Metadaten


Crowd schreibt seine Logs in die atlassian-crowd.log Datei und Tomcat ebenfalls. Dies ist jedoch nur für Crowd bemerkbar, wenn es auf einem *nix basierten Server installiert ist, da diese in Windows nur in die Konsole geschrieben werden. Unten ist der Startvorgang, der in catalina.out geschrieben wurde, für alle in Crowd Standalone gebündelten Anwendungen, wie Crowd OpenID und Crowd selbst:


Crowd OpenID Startvorgang
May 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 Startvorgang
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)

Dies könnten redundante Informationen sein, weil sie in die atlassian-crowd.log Datei geschrieben wurden.

Damit Crowd nur die Tomcat-Logs in catalina.out schreibt, müssen Sie diese Dateien modifizieren:

  • <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


Bearbeiten Sie die folgende Zeile:

Standard
log4j.rootLogger=INFO, console, crowdlog


Modifiziert
log4j.rootLogger=INFO, crowdlog

Speichern Sie alle modifizierten log4j.properties Dateien ab und starten Sie Crowd neu.




Crowd Dokumentation Übersicht:



Crowd Doku

  • Keine Stichwörter