use enum option for log level