ASP.NET logging to Apache error_logNovember 8, 2005Grr, who designed the structure for the ASP.NET documentation? I have been scratching my head for nearly an hour trying to figure out how to place a message in the apache log file. When you search you come up with 100 line solutions written by M$'s Most Valuable Pricks that show you how to write to windows event logs, send errors as email messages and send them as messages in a bottle. All of them seem to ignore this simple trivial one line solution. Console.Error.WriteLine("hello wolrd");
This line of C# code will write the line hello world to your webserver log file. You cannot expect M$ fans to know how to keep things simple. I am sure the above works well on IIS too, I just tested it with mono on apache (mod_mono).
|
|



