frapontillo
frapontillo

Reputation: 10679

Log messages from Web API to console in .NET 4 and IIS6

Coming from Java servlet containers, I really find it annoying that the IIS server (I am stuck with IIS6 on Windows Server 2003) does not have a console output that can be used to log messages into.

Is there a way to do this? I'd like to debug a particularly specific hardware/software deploy configuration that doesn't make my RESTful service, written with WebAPIs in .NET 4, work properly.

I'm thinking if there is some way to write to an output buffer and then consume it by attaching to that particular stream from a cmd console window.

Thank you.

Upvotes: 1

Views: 181

Answers (1)

frapontillo
frapontillo

Reputation: 10679

I ended up writing events in the Windows Event log. A crappy solution for a crappy way of doing stuff, if you ask me.

Upvotes: 1

Related Questions