I think this might be a good candidate for a `switch`. It would make it slightly easier to add support for a new `traceLevel`.