main
1using System;
2using Gorilla.Commons.Infrastructure.Container;
3
4namespace Gorilla.Commons.Infrastructure.Logging
5{
6 static public class Log
7 {
8 static public Logger For<T>(T item_to_create_logger_for)
9 {
10 return For(typeof (T));
11 }
12
13 static public Logger For(Type type_to_create_a_logger_for)
14 {
15 try
16 {
17 return Resolve.the<LogFactory>().create_for(type_to_create_a_logger_for);
18 }
19 catch
20 {
21 return new TextLogger(Console.Out);
22 }
23 }
24 }
25}