In a J2EE application (like one running in WebSphere), when I use
If you look at the
Console class in .NET Reflector, you'll find that if a process doesn't have an associated console,
Console.Error are backed by
Stream.Null (wrapped inside a
TextWriter), which is a dummy implementation of
Stream that basically ignores all input, and gives no output.
So it is conceptually equivalent to
/dev/null, but the implementation is more streamlined: there's no actual I/O taking place with the null device.
Also, apart from calling
SetOut, there is no way to configure the default.