Search code examples
c#.netasp.netelmah

How to remove "Auth_Password" from ELMAH logs


For fairly obvious reasons, I would like to identify the best way to remove the Auth_Password from being captured by ELMAH. What is the best way to go about doing so?


Solution

  • Since ELMAH is open source, I modified the Error.CS file like so. Inside of the Error cunstructor of Error.CS (about line 126), I added this:

    _serverVariables.Remove(AUTH_PASSWORD);
    //AUTH_PASSWORD = const string = "AUTH_PASSWORD" AND SET ELSEWHERE