1 Reply Latest reply on Dec 15, 2008 12:07 AM by gan.gary

    remote path for log4j logging

    gan.gary Novice

      I have a JBoss app that with logging settings like:

      <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
       <param name="File" value="${jboss.server.log.dir}/server.log"/>
       <param name="Append" value="false"/>
       <param name="Threshold" value="INFO"/>
       <param name="MaxFileSize" value="2000KB"/>
       <param name="MaxBackupIndex" value="20"/>
       <param name="Threshold" value="INFO"/>
       <param name="DatePattern" value="'.'yyyy-MM-dd"/>
       <layout class="org.apache.log4j.PatternLayout">
       <!--<param name="ConversionPattern" value="%40d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%c] %m%n"/>-->
       <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>

      how can i write the log into network shared folder (UNC)?
      Something like this seems not working:
      <param name="File" value="\\10.204.XXX.XXX\sharedLog\server.log"/>

      what about impersonation concept in Windows?

      I even tried this:

      <param name="File" value="file://10.204.XXX.XXX/sharedLog/server.log"/>

      althought it's seems to be a valid path, but JBoss created a folder "sharedLog" in c-drive and nothing writes.