NLog.LogManager.Configuration = new XmlLoggingConfiguration("assets//NLog.config",true);
gives me following error:
The name 'new XmlLoggingConfiguration("assets\NLog.config")' does not exist in the current context.
which in turn throws exception
System.NullReferenceException: Object reference not set to an instance of an object.
I tried passing file name in all ways i could think of.
Also can anyone explain me does the above statement is used to log error in that file or that its just rules that are to be followed in the file? Do i have to create a new file where everything gets logged in?