Nlog Async and Log Sequence -
in nlog configuration, i've set
<targets async="true">
with understanding logging happens asynchronously application workflow. (and have noticed performance improvement, on email target). has me thinking log sequence though. understand async, 1 has no guarantee of order in os execute async work. if, in web app, multiple requests come in same method, each logging occurrence nlog, mean sequence in events appear in log target not sequence in log method called various requests?
if so, consequence of async 1 has live with? or there can keep have logs reflect correct sequence?
unfortunately have live with. if important maintain sequence you'll have run synchronously.
but if possible manually maintain sequence number in log message, solution.
Comments
Post a Comment