static void Main(string[] args) { Log.InitializeWith<Log4NetLog>(); "Main".Log().Info(() => "This is a logging message"); Foo foo = new Foo(); foo.Bar(); }