Console output from web app

S

SPG

Hi,

I am pretty new to C#, recently converted from JAVA.
I have a couple of library projects held together by a web app. I do a log
of logging to the Console for debug purposes, but when I run the debugger
using the web app, there seems to be no console output, even to the debugger
window.

I understand that there will be no console when the app runs stand alone,
but JAVA (Tomcat) captures this to a file at least. And during debug we get
a console window.

Is there any way I can do this in C#/ .NET??

Cheers

Steve
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

What you can do is use the EventLog class to generate events that you can
later see using EventViewer.

Cheers,
 
S

Sharon

You can build a simple console exe logging application
and connect to it using remoting.
But if you want to keep it simple just log to a file.
 
M

Mark

I prefer using the default trace listener (writes to the system debug
output) and using sysinternals' DebugView app (www.sysinternals.com) = no
spurious files laying around, and no complicated debugger attachments. Just
clean, simple output.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top