loggerpro
loggerpro copied to clipboard
Disabling logging.
I can't figure out how to provide for the possibility of fully or partially disabling logging. Initially, the log is written to a file. At some point, I no longer need logging, for example. with the [Info] tag. I can't surround all Log.Info calls with the If operator.
There is a filtering log provider, which you can wrap from the file logger. The filtering log provider has an anonymous callback for filtering the log messages. Thus you can insert your own method there, which would allow you to filter log messages any way you like and turn the criteria on/off at run time.
"The filtering log provider has an anonymous callback for filtering the log messages." I don't understand/find what this method is?
LoggerPro.proxy.pas -> TLoggerProAppenderFilterImpl