Hello All,
I searched the archives and couldn't find anything exactly like my current
problem. Im using a fileappender with my webservice. I want the the logging
file to reside in (application directory)\logs\. I found some posts saying
that you can just use \\logs\\application.log in your appender, but this
doesnt seem to work for me. If I use a direct path, it creates the file and
works fine, just not for relative paths. I apoligize for the newbee
question, here is my appender, any help on how to get this to work relative
to my application path would be greatly appreciated;
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
</configSections>
<log4net debug="false">
<appender name="LogFileAppender"
type="log4net.Appender.FileAppender,log4net" >
<param name="File"
value="C:\\UserBridgeServiceLog.txt" />
<param name="AppendToFile" value="true" />
<layout type="log4net.Layout.PatternLayout,log4net">
<param name="ConversionPattern" value="%d
[%t] %-5p %c [%x] - %m%n" />
</layout>
</appender>
<root>
<priority value="DEBUG" />
<appender-ref ref="LogFileAppender" />
</root>
</log4net>
Thanks!
Ryan
Emphasys is interested in your ideas. Visit our new online suggestion
box at http://www.emphasysworld.com/sub/feedback.asp to share your thoughts
for nonsoftware-related improvements. You could win a free pass to
the 2005 Annual User Conference!