[jboss-user] [Installation, Configuration & DEPLOYMENT] - remote path for log4j logging

gan.gary do-not-reply at jboss.com
Thu Dec 11 03:37:05 EST 2008

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"/>
  |       </layout>
  |    </appender>
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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195823#4195823

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195823

More information about the jboss-user mailing list