Question

I'm thinking about using log4net in a MOSS(SharePoint) 2007 project, but I need to know if the logging can easily be configured to log using a certain username + password.

Was it helpful?

Solution

Doesn't look like it (based on a quick flick through the documentation), but you could certainly create a wrapper class for Log4Net that uses impersonation to perform the logging as your required user

Impersonation and Delegation in .NET 2.0 (Should be the same techniques for 3.5)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top