You are correct that the Enterprise Library does not support this.
If you must retrieve data from a file, you must do this using the following:
FileStream fs = new FileStream(@"c:\trace.log", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
I am curious why users need access to log files? Is it for support? If this is a server application, I would probably seriously consider logging into the database and then retrieving the data from the database when the user wants to view the log information.
source
share