change log level from int to bitmask to support separated err log in multilog