Scheduled task logs to many times

When using ITask, it logs in eventLog “Task started” and “Task finished succeeded.” Because of our implementation it runs this task every 5 min, therefore it logs the message above every 5 min. Is there a way to remove this message, so it only logs error and not info.
Or log info in a separated file? if so, how is it done?

Thanks in advanced.
Litium version: Litium 7.2

You can create rules in nlog.config to filter log messages for different levels into different targets. For the start/completed message for the ITask you can also decorate your implementation with the Litium.Foundation.Tasks.INoLogging interface.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.