updated context to receive a logging level