Only log warnings to NLog if the condition is set.