Replace log level integers with the enum called LogLevel