If it complicates the logging, I can rollback the changes. is longer by 3 lines and I added the check for trace in all logs invocation...

```
if (trace) {
   log.tracef(...)
}
```