I am trying to receive the last line of a message inserted into my log file (using Spring.NET Common Logging). My first step is to retrieve the name of the file which is a little tricker than expected as I cant find the relevant properties/cast for this.
I've found a few articles of how to retrieve the filename given the log4net file reader but nothing starting from the Spring.NET Common Logging class.
After I have received the filename, I will use a reverse file reader to retrieve the last name. Wondering peoples thoughts about reading in the file whilst it's potentially being written to by Common Logging / log4net?
