logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicko Cadell" <ni...@neoworks.com>
Subject RE: ~/MyLogFile.txt
Date Fri, 24 Mar 2006 16:42:18 GMT
To use an environment variable in your configuration file try:

<file 
  type="log4net.Util.PatternString" 
  value="%env{LOGGINGPATH}\log.txt" 
/>

cheers,
Nicko

> -----Original Message-----
> From: Morten Andersen [mailto:morten@vianett.no] 
> Sent: 24 March 2006 14:27
> To: Log4NET User
> Subject: ~/MyLogFile.txt
> 
> Hi
> 
> It would have been grate to be able to configure the logging 
> directory for my application, for example, in a environment variable.
> 
> Before:
>             <file value="c:/LogFiles/log4net/MyLogFile.log"/>
> 
> After:
>             <file value="~/MyLogFile.log"/>
> 
> -- 
> 
> Best Regards
> *Morten Andersen*
> Developer
> Vianett AS <http://www.vianett.no/> | morten@vianett.no 
> <mailto:morten@vianett.no> | Office: +47 69 20 69 74 
> <callto://+4769206974> | Skype: mortander <callto://mortander>
> 
> 

Mime
View raw message