Open ilhesam opened 1 year ago
The first solution is using attribute to avoid to log critical data/properties, Like this:
public class LoginRequest
{
[LogIgnore]
public string UserName { get; set; }
[LogIgnore]
public string Password { get; set; }
}
As a developer, I don't want log everything in my project. Ok, Why?
I will write the available solutions below.