log level and open mode updated to pseudo enum values