Now I do it like
LogManager.DisableLogging();
But to do this, I need to deploy my code again, how to disable loggin from nlog config file.
<nlog globalThreshold="Off" />