Turning off logging for specific actions?

Is there any way to kill logging entirely for specific actions?

logger.silence do    # whatever end