Best Practices: Logging in .NET

Writing log files seems trivial at first glance. And at second glance too. But then at some point you're sitting there debugging your own logging code while the log files stubbornly refuse to show the...