Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Log4j Logging issue in ccm participant

We've used log4j logging in one of our participants. The logging works fine when tested on the development environment (Jetty based launch under Eclipse). However, when deployed to a Websphere based environment, the log file only receives Warnings and Errors, rest of the log goes to systemout.log

Our Server is Websphere v9.0.0.9 on Windows 2012 R2 with CLM version 6.0.6 running

Following settings are appended to conf/ccm/log4j.properties file on the server.

####### RTC Extension Engine Logging Configuration##########

log4j.logger.com.rtc.extension.engine=DEBUG, ExtensionEngine

log4j.additivity.com.rtc.extension.engine=false

log4j.appender.ExtensionEngine=org.apache.log4j.RollingFileAppender

log4j.appender.ExtensionEngine.layout=org.apache.log4j.PatternLayout

log4j.appender.ExtensionEngine.layout.ConversionPattern=[%5p] [%t] %d{ISO8601} %c - %m%n

log4j.appender.ExtensionEngine.File=logs/ccm-extension-engine.log

log4j.appender.ExtensionEngine.MaxBackupIndex=5

log4j.appender.ExtensionEngine.MaxFileSize=10MB

####### RTC Extension Engine Logging Configuration##########




Following is the complete content of our log4j.properties from the server including the above block appended.

###############################################################################

# Licensed Materials - Property of IBM

# (c) Copyright IBM Corporation 2005, 2018. All Rights Reserved.

#

# Note to U.S. Government Users Restricted Rights:

# Use, duplication or disclosure restricted by GSA ADP Schedule

# Contract with IBM Corp.

###############################################################################

 

# WARNING:  Log messages get persisted in the database as ChangeEvents for some

# period of time determined by the "ChangeEvent Default Expiration" setting.  By

# default, they get stored for 14 days.  Changing these logging settings

# to cause excessive DEBUG logging might cause your database to grow much larger

# than normal.

 

# Default logging is for WARN and higher

log4j.rootLogger=INFO, file

 

# Comment out above and uncomment here if you want the old behavior of showing

# messages on stdout as well as jazz.log.  Be aware that the file storing

# tomcat's stdout output will grow without rotation and could eventually fill

# up your disk drive.

#log4j.rootLogger=WARN, stdout, file

 

################################

#   File Appender              #

################################

log4j.appender.file=org.apache.log4j.RollingFileAppender

log4j.appender.file.MaxFileSize=10MB

log4j.appender.file.MaxBackupIndex=5

log4j.appender.file.File=logs/ccm.log

log4j.appender.file.layout=org.apache.log4j.PatternLayout

log4j.appender.file.layout.ConversionPattern=%d{ISO8601} [%30t] %5p %-50.50c  - %m%n

 

################################

#   stdout Appender            #

################################

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.

log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %5p %-50.50c  - %m%n

# Get file and line numbers, but it's very expensive...

#log4j.appender.stdout.layout.ConversionPattern=%-8r [%t] %5p (%F:%L)  - %m%n

# Default conversion pattern

#log4j.appender.stdout.layout.ConversionPattern=%r [%t] %p %c %x - %m%n

# Another example pattern

#log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

 

################################

#   Transactions               #

################################

# Turn on debugging of all SQL queries

#log4j.logger.sqlTxLogger=DEBUG

 

# Turn on some higher-level tracing for transactions, save participants, etc

#log4j.logger.com.ibm.team.repository.service.internal.RdbRepositoryDataMediator=DEBUG

#log4j.logger.com.ibm.team.core.repository=DEBUG

 

# Turn on Server statistics about the SQL queries

#com.ibm.team.repository.service.internal.collectSqlStats=DEBUG

 

################################

#   LDAP access from jazz      #

################################

#Turn on query trace against the LDAP server

#log4j.logger.com.ibm.team.repository.service.jts.internal.userregistry.ldap.LDAPUserRegistry=DEBUG

 

#Turn on asynch task DEBUG trace

#log4j.logger.com.ibm.team.repository.service.internal.scheduler=DEBUG

 

################################

#   Feeds                      #

################################

# Feed errors are logged at the debug level.

#log4j.logger.com.ibm.team.repository.service.feed=DEBUG

 

################################

#  Git                      #

################################

# Turn OFF messages for Git Component

log4j.logger.com.ibm.team.git=OFF

 

################################

#   JavaScript                 #

################################

# Turn on ERROR messages only for JavaScriptDependencyAnalyzer to suppress the dojo circular dependency warning

#log4j.logger.net.jazz.ajax.internal.javascript.JavaScriptDependencyAnalyzer=ERROR

 

################################

#   Jena                       #

################################

# Turn off all Jena logging (https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/131042)

log4j.logger.com.hp.hpl.jena=OFF

log4j.logger.org.openjena=OFF

# Turn off some part of Jena logging. Must be uncommented if Jena logging is not globally turned off.

#log4j.logger.com.hp.hpl.jena.tdb.store.FactoryGraphTDB=ERROR

#log4j.logger.com.hp.hpl.jena.tdb.exec=ERROR

#log4j.logger.org.openjena.riot=FATAL

 

################################

#   Jazz Foundation Services   #

################################

 

# JFS messages are logged at the info level

log4j.logger.com.ibm.team.jfs=INFO

 

# Uncomment these lines to create a versioned content access log file

# WARNING : These files will grow fairly fast, if you wish to process this accurately, you

# will could use a FileAppender and pipe it into another script/program. 

#log4j.appender.scm_scaa=org.apache.log4j.RollingFileAppender

#log4j.appender.scm_scaa.layout=org.apache.log4j.PatternLayout

#log4j.appender.scm_scaa.layout.ConversionPattern=%m %n

#log4j.appender.scm_scaa.File=scaa_content.log

#log4j.appender.scm_scaa.MaxBackupIndex=10

#log4j.appender.scm_scaa.MaxFileSize=7000KB

#log4j.logger.scm_scaa=TRACE, scm_scaa

 

################################

#   SCM Move Content Log       #

################################

log4j.appender.scm_move_content=org.apache.log4j.RollingFileAppender

log4j.appender.scm_move_content.layout=org.apache.log4j.PatternLayout

log4j.appender.scm_move_content.layout.ConversionPattern=%d{ISO8601} %m %n

log4j.appender.scm_move_content.File=logs/scm-move-content.log

log4j.appender.scm_move_content.MaxBackupIndex=10

log4j.appender.scm_move_content.MaxFileSize=7000KB

log4j.logger.scm_move_content=INFO, scm_move_content

log4j.additivity.scm_move_content=false

 

#Uncomment to enable tracing by interface or method name.

#log4j.logger.scm_trace.com.ibm.team.scm.common.IScmService=TRACE

#log4j.logger.scm_trace.com.ibm.team.scm.common.internal.IScmQueryService=TRACE

#log4j.logger.scm_trace.com.ibm.team.filesystem.common.IFilesystemService.compareWorkspaces=TRACE

 

#Uncomment to enable tracing when a transaction fetches more items than the specified threshold

#log4j.logger.scm_trace.com.ibm.team.scm.service.internal.ScmTransactionContext.fetch=TRACE

 

################################

#            BUILD             #

################################

 

# Workaround for issue with XML JDBC drivers overriding log level for com.ibm.rational

# The level here should be the same as the default (see log4j.rootLogger setting above).

# See https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/163146

# and https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/49542

log4j.logger.com.ibm.rational.buildforge=WARN

log4j.logger.com.ibm.rational.connector.buildforge=WARN

log4j.logger.com.ibm.rational.connector.hudson=INFO

 

################################

#    Enterprise Extensions     #

################################

#Migration

log4j.logger.com.ibm.team.enterprise.internal.migration.service.EnterpriseMigrationTask=INFO

log4j.logger.com.ibm.team.enterprise.internal.migration.service.EnterpriseMigrationService=INFO

log4j.logger.com.ibm.team.enterprise.buildmap.service.internal.DeletedBuildDefinitionBuildMapHistoryCleaupTask=INFO

log4j.logger.com.ibm.team.enterprise.buildmap.service.internal.DeleteMissingMainBuildMapResourcesTask=INFO

log4j.logger.com.ibm.team.enterprise.buildmap.service.internal.DeleteTeamzPersonalBuildMapTask=INFO

log4j.logger.com.ibm.team.enterprise.buildmap.service.internal.FixStorageAreaTask=INFO

log4j.logger.com.ibm.team.enterprise.buildmap.service.internal.FixTeamzStorageAreaTask=INFO

log4j.logger.com.ibm.team.enterprise.buildmap.service.internal.SetBuildMapComponentUUIDTask=INFO

log4j.logger.com.ibm.team.enterprise.internal.build.preprocess.service.FixStorageAreaIndexTask=INFO

log4j.logger.com.ibm.team.enterprise.internal.buildablesubset.service.MigrateOldSubsetTask=INFO

log4j.logger.com.ibm.team.enterprise.internal.buildablesubset.service.MigrateSubsetWorkItemsTask=INFO

log4j.logger.com.ibm.team.enterprise.internal.buildablesubset.service.MigrateToTeamSubsetTask=INFO

log4j.logger.com.ibm.team.enterprise.scd.compatibility.migration.MigrateSourceCodeData=INFO

log4j.logger.com.ibm.team.enterprise.systemdefinition.compatibility.migration.MigrateJfsSystemDefinitions=INFO

log4j.logger.com.ibm.team.enterprise.metadata.query.compatibility.migration.MigrateScdQuery=INFO

log4j.logger.com.ibm.team.enterprise.packaging.compatibility.migration.MigratePackagingDeployment=INFO

log4j.logger.com.ibm.team.enterprise.zos.systemdefinition.migration.service=INFO

#log4j.logger.com.ibm.team.enterprise.internal.cleanup=INFO

 

#Uncomment to enable tracing for SCD Scanning

#log4j.logger.com.ibm.team.enterprise.internal.metadata.scan=DEBUG

#log4j.logger.com.ibm.team.enterprise.internal.metadata.collection.service=DEBUG

#log4j.logger.com.ibm.team.enterprise.internal.metadata.resource=DEBUG

#log4j.logger.com.ibm.team.enterprise.jfs.commons.storage=DEBUG

 

#Uncomment to enable tracing for Dependency Build

#log4j.logger.com.ibm.team.enterprise.dependencyset.service=DEBUG

#log4j.logger.com.ibm.team.enterprise.internal.dependencyset.service.utils=DEBUG

#log4j.logger.com.ibm.team.enterprise.internal.build.preprocess.service=DEBUG

 

################################

#      JSA SSO                                          #

################################

log4j.logger.customer.com.ibm.team.integration.auth = WARN, file

log4j.logger.developer.com.ibm.team.integration.auth = INFO, ssoDeveloperLog

log4j.additivity.customer.com.ibm.team.integration.auth=false

log4j.additivity.developer.com.ibm.team.integration.auth=false

log4j.appender.ssoDeveloperLog=org.apache.log4j.RollingFileAppender

log4j.appender.ssoDeveloperLog.MaxFileSize=10MB

log4j.appender.ssoDeveloperLog.MaxBackupIndex=5

log4j.appender.ssoDeveloperLog.File=logs/ccm-internalSso.log

log4j.appender.ssoDeveloperLog.layout=org.apache.log4j.PatternLayout

log4j.appender.ssoDeveloperLog.layout.ConversionPattern=%d{ISO8601} [%30t] %5p %-50.50c  - %m%n

 

################################

#   Reports Diagnostics Log    #

################################

log4j.logger.com.ibm.team.rtc.common.internal.service.rest.reports.diagnostics=INFO, reports_diagnostics

log4j.additivity.com.ibm.team.rtc.common.internal.service.rest.reports.diagnostics=false

log4j.appender.reports_diagnostics=org.apache.log4j.RollingFileAppender

log4j.appender.reports_diagnostics.layout=org.apache.log4j.PatternLayout

log4j.appender.reports_diagnostics.layout.ConversionPattern=%d{ISO8601} [%30t] %5p - %m%n

log4j.appender.reports_diagnostics.File=logs/ccm-reportsDiagnostics.log

log4j.appender.reports_diagnostics.MaxBackupIndex=5

log4j.appender.reports_diagnostics.MaxFileSize=10MB

####### RTC Extension Engine Logging Configuration##########

log4j.logger.com.rtc.extension.engine=DEBUG, ExtensionEngine

log4j.additivity.com.rtc.extension.engine=false

log4j.appender.ExtensionEngine=org.apache.log4j.RollingFileAppender

log4j.appender.ExtensionEngine.layout=org.apache.log4j.PatternLayout

log4j.appender.ExtensionEngine.layout.ConversionPattern=[%5p] [%t] %d{ISO8601} %c - %m%n

log4j.appender.ExtensionEngine.File=logs/ccm-extension-engine.log

log4j.appender.ExtensionEngine.MaxBackupIndex=5

log4j.appender.ExtensionEngine.MaxFileSize=10MB

####### RTC Extension Engine Logging Configuration##########

0 votes

Comments

The issue is likely in the code you use for logging. You likely do use client code that is not available in the server. See https://jazz.net/forum/questions/177788/rtc-is-it-possible-to-write-logs-into-jazzlog-file-located-in-rtc-server-machine for how server logging works. 

Which log4j version are you using?
All supported ELM releases were remediated to use log4j 2.x, and the log4j v1.x jars were removed. ELM 6.x is end of service and has not, and will not, be similarly remediated.


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 8
× 1

Question asked: Apr 23 '20, 8:24 a.m.

Question was seen: 1,814 times

Last updated: Dec 09 '22, 4:32 a.m.

Confirmation Cancel Confirm