In my application I use log4net for logs creation. I want to create the log files in the location where the application gets installed.That is , the log files should be generated in c:\App_Instal_path\Logs(folder)
, if the application is installed under c:\
.If it is D:\
then the log files should be under D:\App_Instal_path\Logs(folder)
. I have done like:
<appender name="ColoredFileAppender" type="log4net.Appender.RollingFileAppender" >
<file type="log4net.Util.PatternString"/>
<file value=***NEEDS TO BE FILLED*** />
Any responses would be really appreciated..