ikbal
ikbal

Reputation: 1894

Accesing, Merging IIS extended log files

I need to access, merge and parse my log files using my asp.net application programmatically. I use shared hosting and as I can see log files are out of the root directory of my website? Is there anyway to access those files from my application?

Upvotes: 1

Views: 173

Answers (1)

Aristos
Aristos

Reputation: 66641

Yes you can, as long as you set permission to the log directory with the files for your asp.net running user.

Get your application path:

HttpContext.Current.Request.PhysicalApplicationPath

and manipulate to your log directory file...

Upvotes: 1

Related Questions