Re: System.Console.WriteLine question
From: Ian Griffiths [C# MVP] (ian-interact-sw_at_nospam.nospam)
Date: 11/25/04
- Next message: Ziphyre: "Re: abnormal memory occupation?"
- Previous message: Ian Griffiths [C# MVP]: "Re: How to write to config file"
- In reply to: Thomas P. Skinner [MVP]: "Re: System.Console.WriteLine question"
- Next in thread: newsgroupie: "Re: System.Console.WriteLine question"
- Reply: newsgroupie: "Re: System.Console.WriteLine question"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Nov 2004 11:32:09 -0000
There are various tools out there that let you look at the debug output
stream without having to attach a debugger. Here's one:
http://www.sysinternals.com/ntw2k/freeware/debugview.shtml
But if you want to do logging, then look at the Trace class. Or if you want
a lot of flexibility, consider looking at the log4net project.
-- Ian Griffiths - http://www.interact-sw.co.uk/iangblog/ DevelopMentor - http://www.develop.com/ "Thomas P. Skinner [MVP]" wrote: > Yes. This works as long as you run the application under VS.NET under > debug mode. The output from Debug.WriteLine calls goes to the output > window. I was thinking the question was geared more to a type of > logging/monitoring rather than debugging. > > I often change the build to a console build for a Windows Forms > application for just such a purpose. When you do that you get a console > window that you can use Console.WriteLine to output to. This works > regardless of whether you run the program from VS.NET or not. > > Thomas P. Skinner [MVP] > > "Benjamin" <csharp.25.jc99@spamgourmet.com> wrote in message > news:u2HoWun0EHA.3704@tk2msftngp13.phx.gbl... >> Thomas P. Skinner [MVP] wrote: >>> Unfortunately I don't think you can use Console. Apparently standard >>> input and standard output are not mapped to the console for an ASP.NET >>> application. I would suggest opening a file and writing to the file for >>> logging purposes. I ran into this issue some time ago. You are not >>> missing anything. >>>> >>>>Ps: Back in the good old days we had something called "TRACE" ;-) >> >> Couldent you just use System.Diagnostics.Debug.WriteLine for this?
- Next message: Ziphyre: "Re: abnormal memory occupation?"
- Previous message: Ian Griffiths [C# MVP]: "Re: How to write to config file"
- In reply to: Thomas P. Skinner [MVP]: "Re: System.Console.WriteLine question"
- Next in thread: newsgroupie: "Re: System.Console.WriteLine question"
- Reply: newsgroupie: "Re: System.Console.WriteLine question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|