Forum Stats

  • 3,780,843 Users
  • 2,254,447 Discussions
  • 7,879,483 Comments

Discussions

JCS - SaaS, log file not generated in /customer/scratch/ directory

3334670
3334670 Member Posts: 5
edited Nov 14, 2016 12:58PM in Java Cloud Service

Hi

Below is my log4j xml (i am using spring 4.0 for development) for JCS - SaaS Deployment

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j Configuration//EN" "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">

       <layout class="org.apache.log4j.PatternLayout">

          <param name="ConversionPattern" value="%d %-5p %c.%M:%L - %m%n"/>

       </layout>

    </appender>

    <appender name="file" class="org.apache.log4j.DailyRollingFileAppender">

        <param name="DatePattern" value="'.'yyyy-MM-dd" />

        <param name="file" value="/customer/scratch/justLogg.log" />

        <layout class="org.apache.log4j.PatternLayout">

            <param name="ConversionPattern"

                   value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" />

        </layout>

    </appender>

   <!-- specify the logging level for loggers from other libraries -->

    <logger name="org.springframework">

        <level value="ERROR" />

    </logger>

   <!-- for all other loggers log only info and above log messages -->

     <root>

        <priority value="DEBUG"/>

        <appender-ref ref="STDOUT" />

        <appender-ref ref="file" />

     </root>

</log4j:configuration>

when the WAR file is deployed to JCS - SaaS environment, i did not find any log file (justLogg.log) in the directory /customer/scratch/

is there anything i need to change in my log4j.xml.?

requesting you to please help me, thanks

Message was edited by: 3334670

This discussion has been closed.