If we even have all log levels disabled, the lambda for the message is still calculated. This affects performance and memory consumption. We can add a second log method with a lambda argument instead of a string message and evaluate this lambda only if necessary.
If we even have all log levels disabled, the lambda for the message is still calculated. This affects performance and memory consumption. We can add a second log method with a lambda argument instead of a string message and evaluate this lambda only if necessary.