If the console is already attached, do not attach it again.
and as a result all the
dtkDebug lines were displayed dozens of time on the console.
One issue is that there is no way to check if a
dtkLogDestination is already attached or not. That is why the solution I found is to avoid attaching the console several times. Maybe that sort of checking could be done as well before attaching a file, or a model.