c# - Logging Asynchronous Diagnostic Info -


i have wcf service implements method - lets call calculatecosts(). generate diagnostic information such method start , end times within method along other pertinent information , when needed. keeping simple, each "log" call spits data out log file representing current calculatecosts process. if example, user's 1 , 2 call calculatecosts() result in 2 log files being created - each containing debug information related given call (not best way know simple).

i have optimised method makes number of asynchonous calls using task.factory.startnew i'm having problems. named file using threadid means asynchronous calls create own logs when need them added "parent" thread log.

i can't seem find way tell child threads may in different projects , deep in other classes how use original thread's file. ideally i'd pass process id/name of kind can use group diagnostic information can't figure out how it.

does have ideas of how can this?


Comments

Popular posts from this blog

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -