tracesource
Format ApplicationData in Service Trace Viewer as XML
I\'m using TraceSource to log information to a XmlWriterTraceListener. The message I\'m logging is a XML, however, when I view the message in Service Trace Viewer, it\'s not displayed as a XML, it\'s[详细]
2023-04-12 15:00 分类:问答How to format the Timestamp data when using TraceOptions.Timestamp
How can I format the Timestamp data that is prin开发者_运维技巧ted when you set the TraceOutputOptions = TraceOptions.Timestamp?[详细]
2023-04-11 17:40 分类:问答TraceInformation method call is disabled by compiler
I put a breakpoint to the last line of code. Breakpoint is disabled. Why? It looks like the code is excluded by some condition. The constructor of TraceSource works, and I can verify the object is OK[详细]
2023-03-14 04:10 分类:问答TraceSource vs Enterprise logging block
Are there any specific uses cases where just using TraceSource will not be enough and one should consider looking in开发者_高级运维to other logging libraries ( like Enterprise logging block, log4net,[详细]
2023-03-03 21:03 分类:问答Write eventlog while using impersonation
For some reason when I use the impersonate option in web.config. Everything is fine, but one problem obsesses me that is the following error occurs while using System.Diagnostics.TraceSource to write[详细]
2023-02-25 03:40 分类:问答TraceSource and ASP.NET: Works for Web Applications, not WebSites
I\'m adding tracing functionality to an ASP.NET website so I decided to investigate TraceSource by creating a couple of prototypes; a Web Application project and a Website project.[详细]
2023-02-17 06:35 分类:问答When do I need more than one TraceSource in code?
If one application is writing all its activity data in one log file, is there any use of having more than one TraceSource? I am just curious about the uses case开发者_如何学编程s where one will need m[详细]
2023-02-07 19:43 分类:问答How to filter trace listened by event id?
I\'m using next method to add a trace record: TraceSource.TraceEvent(TraceEventType, Int32, String) where Int32 represents event id.[详细]
2023-01-31 04:11 分类:问答CPU Affinity Masks (Putting Threads on different CPUs)
I have 4 threads, and I am trying to set thread 1 to run on CPU 1, thread 2 on CPU 2, etc. However, when I run my code below, the affinity masks are returning the correct values, but when I do a sched[详细]
2022-12-25 04:01 分类:问答