Now i am doing like this
LogManager.DisableLogging();
But this need to deploy my code again, how can I disable loggin from nlog configuration file.
<nlog globalThreshold="Off" />