cache Log.isLoggable()