Logger fix to correctly display log levels