added support for custom log levels