Optimization involves generating a prefix for each log line only if the 'display' criteria are met. If the log level is too low or the log is disabled - the function will not be executed.
This will save on fetching local time, process id and on generating strings.
Optimization involves generating a prefix for each log line only if the 'display' criteria are met. If the log level is too low or the log is disabled - the function will not be executed.
This will save on fetching local time, process id and on generating strings.