Add logging level check