C
csharper
I am trying to use NLog for my applications. And I have statements
like below (faked examples only) in my code:
logger.Trace("My trace message");
logger.Debug("My debug message");
logger.Info("My information message");
For development, of course, this is very helpful, I can eyeball what
is going on in the application.
My question is: Will such ugly logging messages be output in
production?
Is it the case that such logger methods will only be executed when the
application is built for Debug and will be automatically suppressed if
I build my application for Release?
I don't think we need to comment out such logger statements for
production like in the ancient days, correct?
Kinda new to logging, please educate, thank you.
like below (faked examples only) in my code:
logger.Trace("My trace message");
logger.Debug("My debug message");
logger.Info("My information message");
For development, of course, this is very helpful, I can eyeball what
is going on in the application.
My question is: Will such ugly logging messages be output in
production?
Is it the case that such logger methods will only be executed when the
application is built for Debug and will be automatically suppressed if
I build my application for Release?
I don't think we need to comment out such logger statements for
production like in the ancient days, correct?
Kinda new to logging, please educate, thank you.