blob: 19d66261a8fea41428b3af6481138820d676d353 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System;
using jive.infrastructure.container;
namespace jive.infrastructure.logging
{
static public class Log
{
static public Logger For<T>(T item_to_create_logger_for)
{
return For(typeof (T));
}
static public Logger For(Type type_to_create_a_logger_for)
{
try
{
return Resolve.the<LogFactory>().create_for(type_to_create_a_logger_for);
}
catch
{
return new TextLogger(Console.Out);
}
}
}
}
|