Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Highlighted
sma2006 Outstanding Contributor.
Outstanding Contributor.
114 views

Catalina.log not rolling over on Windows with IDM 4.7

Jump to solution

Hi,

This is a problem that is not solved by the TID  7017790 that applied to IDM 4.5.x.

The logging configuration is different with IDM 4.7 than with IDM 4.5.

The setenv.bat provide the following parameters : -Dlog4j.configuration=file:C:\netiq\idm\apps\tomcat\conf\userapp-log4j.xml -Dlogging.configuration=file:C:\netiq\idm\apps\tomcat\conf\logging.properties

And the 2 files are :

<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ ======================================================================================
  ~ Copyright (c) 2013-2016 Unpublished Work of NetIQ Corporation. All Rights Reserved.
  ~
  ~ THIS WORK IS AN UNPUBLISHED WORK AND CONTAINS CONFIDENTIAL, PROPRIETARY AND TRADE
  ~ SECRET INFORMATION OF NETIQ CORPORATION. ACCESS TO THIS WORK IS RESTRICTED TO
  ~ (I) NETIQ CORPORATION EMPLOYEES WHO HAVE A NEED TO KNOW HOW TO PERFORM TASKS WITHIN
  ~ THE SCOPE OF THEIR ASSIGNMENTS AND (II) ENTITIES OTHER THAN NETIQ CORPORATION WHO HAVE
  ~ ENTERED INTO APPROPRIATE LICENSE AGREEMENTS. NO PART OF THIS WORK MAY BE USED,
  ~ PRACTICED, PERFORMED, COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED, ABRIDGED,
  ~ CONDENSED, EXPANDED, COLLECTED, COMPILED, LINKED, RECAST, TRANSFORMED OR ADAPTED
  ~ WITHOUT THE PRIOR WRITTEN CONSENT OF NETIQ CORPORATION. ANY USE OR EXPLOITATION OF
  ~ THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO CRIMINAL AND CIVIL
  ~ LIABILITY.
  ~ =======================================================================================
  ~
  -->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- ===================================================================== -->
<!--                                                                       -->
<!--  Log4j Configuration                                                  -->
<!--                                                                       -->
<!-- ===================================================================== -->

    <!-- ============================================== -->
    <!-- Console Appender                               -->
    <!-- ============================================== -->
    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
        <param name="Encoding" value="UTF-8"/>
        <param name="Target" value="System.out"/>
        <param name="Threshold" value="ALL"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d [%p] %c{1} %m%n"/>
        </layout>
    </appender>
    <!-- ============================================== -->
    <!-- Catalina Appender                              -->
    <!-- ============================================== -->
    <appender name="IDAPPS" class="org.apache.log4j.DailyRollingFileAppender">
        <param name="Append" value="true"/>
        <param name="DatePattern" value="'.'yyyy-MM-dd'.log'"/>
        <param name="Encoding" value="UTF-8"/>
        <param name="File" value="${catalina.base}/logs/idapps.out"/>
        <param name="Threshold" value="ALL"/>
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d [%p] %c{1} %m%n"/>
        </layout>
    </appender>
    <!-- Liquibase logger -->
    <logger name="liquibase">
        <level value="INFO"/>
    </logger>
    <!-- Main Hibernate log - change to debug for verbose output, or info for messages -->
    <logger name="org.hibernate">
        <level value="ERROR"/>
    </logger>
    <!-- To show SQL statements, set org.hibernate.sql level to debug -->
    <logger name="org.hibernate.SQL">
        <level value="ERROR"/>
    </logger>
    <!-- To show JDBC bind parameters, set org.hibernate.type.descriptor.sql level to trace -->
    <logger name="org.hibernate.type.descriptor.sql">
        <level value="ERROR"/>
    </logger>
    <logger name="org.hibernate.engine.jdbc.internal.LogicalConnectionImpl">
        <level value="ERROR"/>
    </logger>
    <!-- To show 2nd level cache usage, set org.hibernate.cache to debug -->
<!--
    <logger name="org.hibernate.cache">
        <level value="DEBUG"/>
    </logger>
-->
    <!-- To show query statistics gathered by Hibernate, set org.hibernate.stat to debug -->
<!--
    <logger name="org.hibernate.stat">
        <level value="DEBUG"/>
    </logger>
-->
    <!-- To show DDL statements, set org.hibernate.tool.hbm2ddl to debug -->
<!--
    <logger name="org.hibernate.tool.hbm2ddl">
        <level value="DEBUG"/>
    </logger>
-->
    <logger name="com.mchange.v2">
        <level value="ERROR"/>
    </logger>
    <!-- ======================= -->
    <!-- Setup the Root category -->
    <!-- ======================= -->
    <root>
        <level value="INFO"/>
        <appender-ref ref="CONSOLE"/>
        <appender-ref ref="IDAPPS"/>
    </root>
</log4j:configuration>
 
AND 
 
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
handlers = 1catalina.org.apache.juli.AsyncFileHandler, 2localhost.org.apache.juli.AsyncFileHandler, 3manager.org.apache.juli.AsyncFileHandler, 4host-manager.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler
.handlers = 1catalina.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
1catalina.org.apache.juli.AsyncFileHandler.level = FINE
1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.
2localhost.org.apache.juli.AsyncFileHandler.level = FINE
2localhost.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.AsyncFileHandler.prefix = localhost.
3manager.org.apache.juli.AsyncFileHandler.level = FINE
3manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.AsyncFileHandler.prefix = manager.
4host-manager.org.apache.juli.AsyncFileHandler.level = FINE
4host-manager.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs
4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter

############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.AsyncFileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.AsyncFileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.AsyncFileHandler
# For example, set the org.apache.catalina.util.LifecycleBase logger to log
# each component that extends LifecycleBase changing state:
#org.apache.catalina.util.LifecycleBase.level = FINE
# To see debug messages in TldLocationsCache, uncomment the following line:
#org.apache.jasper.compiler.TldLocationsCache.level = FINE
# To see debug messages for HTTP/2 handling, uncomment the following line:
#org.apache.coyote.http2.level = FINE
# To see debug messages for WebSocket handling, uncomment the following line:
#org.apache.tomcat.websocket.level = FINE
 
Surprisingly, host-maner, manager and localhost files are rolling over but the Catalina.out.
 
Thanks
 
Sylvain
 
Labels (1)
1 Solution

Accepted Solutions
Marcus Tornberg Honored Contributor.
Honored Contributor.

Re: Catalina.log not rolling over on Windows with IDM 4.7

Jump to solution

Hi.

I had a similar issue, but it was IDApps.log that was not rolling over on Windows and 4.7.3.

Had an SR on it, and got a bug #1156828.

Best regards

Marcus

View solution in original post

0 Likes
1 Reply
Marcus Tornberg Honored Contributor.
Honored Contributor.

Re: Catalina.log not rolling over on Windows with IDM 4.7

Jump to solution

Hi.

I had a similar issue, but it was IDApps.log that was not rolling over on Windows and 4.7.3.

Had an SR on it, and got a bug #1156828.

Best regards

Marcus

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.