here is in C#:
private static readonly ILog log = LogManager.GetLogger(typeof (MyClass));
Not only in C# but another language i saw the same.. any thought?
It's private because other classes should not access MyClass
' log.
It's static
because it doesn't depend on the class instance. (And so that it can be used by static
methods)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With