Added EmptyLogs method to clear logs to prevent writing to target when flushed