Support warning and warn as names for logging level to be consistent with Python logging