c# - Does "Async" keyword is the only requirement in making NLog logging asynchronous? -


i writing target database. in targets section, have marked async true. still need write code web service make logging async or framework takes care of it?

<targets async="true"> 

yes, async attribute needed (in config)

the async keyword in c# isn't needed.

ps: aware async attribute discard default if write more 10000 events in short time. if need more control, use asyncwrapper instead of async attribute. see docs


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -