Console.Out inside IIS

Discussion in 'ASP .Net Web Services' started by Mike Schilling, Dec 17, 2003.

  1. Consider these two statements:

    1. Writing to System.Console.Out in a program running inside IIS has no
    effect.

    This comes from observation. I have some code which writes an exception
    stack trace to Console.Out (not the right way to do things, I know.) Under
    IIS, this output does not appear anywhere I can find.

    2. Calling Console.SetOut in an ASP.NET program would affect the entry
    aspnet_wp worker process, not just the application domain that made the
    call.

    The obvious way to make my code work without rewriting it is to redirect
    Console.Out (and Console.Err) to a log file. I'm guessing that this is a
    bad idea because of statement 2, that doing so would affect all of ASP.NET,
    since System is part of an application neutral assembly.

    If either of these is incorrect, or I'm simply looking at things the wrong
    way, please let me know.
    Mike Schilling, Dec 17, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Finney
    Replies:
    2
    Views:
    987
    Egor Bolonev
    Jun 30, 2003
  2. Egor Bolonev
    Replies:
    0
    Views:
    477
    Egor Bolonev
    Jun 30, 2003
  3. Serge Terekhoff
    Replies:
    0
    Views:
    642
    Serge Terekhoff
    Jun 30, 2003
  4. Miktor
    Replies:
    7
    Views:
    12,036
    Joe Bacigalupa
    Aug 9, 2005
  5. Replies:
    5
    Views:
    3,427
    James Kanze
    Mar 4, 2008
Loading...

Share This Page