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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -