Example of how to simply configure and use log4net in a .NET Compact Framework application.
The .NET Compact Framework does not support retrieving assembly-level attributes, therefor log4net must be configured by code.
The .NET Compact Framework does not support hooking up the AppDomain.ProcessExit and AppDomain.DomainUnload events, so log4net must be shutdown manually to free all resources.