Hi,
I' m running UA 4.5.4 and noticed some weird issues with logging. For
some reason, once a roll-over happens, UA will write to the old
timestamped file (catalina.out.yyyy-MM-dd.log), instead of using the new
one like it should (catalina.out).

Doing some search, I realized that the roll to wrong file happend when a
SSPR log is writed to catalina.out.
Seems that SSPR wants to write catalina.out, then UA move his log to
catalina.out.yyyy-MM-dd.log (yyyy-MM-dd is allways a day before) and
keep logging in that file (SSPR keep logging in catalina.out)

The result is that we have all the logs in the files of a day before.
It's posible that SSPR is doing this? Or it's some wrong log4j
configuration?

How could i disable SSPR to log in catalina.out? We aren't using SSPR
anyway.


This is the content of /opt/netiq/idm/apps/tomcat/lib/log4j.properties


Code:
--------------------
log4j.rootLogger = INFO, CATALINA

# Define all the appenders
log4j.appender.CATALINA = org.apache.log4j.DailyRollingFileAppender
log4j.appender.CATALINA.File = /opt/netiq/idm/apps/tomcat/logs/catalina.out
log4j.appender.CATALINA.Append = true
log4j.appender.CATALINA.Encoding = UTF-8
# Roll-over the log once per day
log4j.appender.CATALINA.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.CATALINA.layout = org.apache.log4j.PatternLayout
log4j.appender.CATALINA.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

log4j.appender.LOCALHOST = org.apache.log4j.DailyRollingFileAppender
log4j.appender.LOCALHOST.File = /opt/netiq/idm/apps/tomcat/logs/localhost.log
log4j.appender.LOCALHOST.Append = true
log4j.appender.LOCALHOST.Encoding = UTF-8
log4j.appender.LOCALHOST.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.LOCALHOST.layout = org.apache.log4j.PatternLayout
log4j.appender.LOCALHOST.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

log4j.appender.MANAGER = org.apache.log4j.DailyRollingFileAppender
log4j.appender.MANAGER.File = /opt/netiq/idm/apps/tomcat/logs/manager.log
log4j.appender.MANAGER.Append = true
log4j.appender.MANAGER.Encoding = UTF-8
log4j.appender.MANAGER.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.MANAGER.layout = org.apache.log4j.PatternLayout
log4j.appender.MANAGER.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

log4j.appender.HOST-MANAGER = org.apache.log4j.DailyRollingFileAppender
log4j.appender.HOST-MANAGER.File = /opt/netiq/idm/apps/tomcat/logs/host-manager.log
log4j.appender.HOST-MANAGER.Append = true
log4j.appender.HOST-MANAGER.Encoding = UTF-8
log4j.appender.HOST-MANAGER.DatePattern = '.'yyyy-MM-dd'.log'
log4j.appender.HOST-MANAGER.layout = org.apache.log4j.PatternLayout
log4j.appender.HOST-MANAGER.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Encoding = UTF-8
log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern = %d [%t] %-5p %c- %m%n

# Configure which loggers log to which appenders
log4j.logger.org.apache.catalina.core.ContainerBas e.[Catalina].[localhost] = INFO, LOCALHOST
log4j.logger.org.apache.catalina.core.ContainerBas e.[Catalina].[localhost].[/manager] =\
INFO, MANAGER
log4j.logger.org.apache.catalina.core.ContainerBas e.[Catalina].[localhost].[/host-manager] =\
INFO, HOST-MANAGER

--------------------


Thanks,
Regards


--
sarietti
------------------------------------------------------------------------
sarietti's Profile: https://forums.netiq.com/member.php?userid=2277
View this thread: https://forums.netiq.com/showthread.php?t=56756