DCSIMG

 Subscribe in a reader

How To? - Guy kolbis

Browse by Tags

All Tags » How To? (RSS)
I am using Log4Net as a logging framework for a small application I am writing. I needed to get the full path to the output file that Log4Net is generating. Apparently it is quite hidden…So here is a code that will help you get that file: public static string LogFile { get { return (( FileAppender ) LoggerService .Logger.Logger.Repository.GetAppenders()[0]).File; } } The loggerService is my Log4Net wrapper which is fully tested and you can use it here: using System; using System.Collections.Generic;...
נשלח על ידי kolbis | 2 תגובה/ות
תגים:,