master
 1using Notepad.Infrastructure.Container;
 2using Notepad.Infrastructure.Logging.Log4NetLogging;
 3
 4namespace Notepad.Infrastructure.Logging {
 5    public static class Log {
 6        public static ILogger For<T>(T typeToCreateLoggerFor) {
 7            try {
 8                return Resolve.DependencyFor<ILogFactory>().CreateFor(typeof (T));
 9            }
10            catch {
11                return new Log4NetLogFactory().CreateFor(typeof (T));
12            }
13        }
14    }
15}