The easiest way will be setting a URL (http://server/virtual_logs) path
instead of a physical path. The virtual directory will be configured in
the IIS with the correct path (\\RemoteServerLog\PRO\logs
<file:///\\RemoteServerLog\PRO\logs> )

But, I don't know how to do it, something like Server.Mappath that
converts the path.

 

<appender name="RollingLogFileAppender"
type="log4net.Appender.RollingFileAppender">

      <param name="File/sink/ ??? "
value="%{Server.Mappath('http://server/virtual_logs')"/>

      

 

Any idea??

 

 

 

Reply via email to