/// <summary> /// Gets the log. /// </summary> /// <returns>The log.</returns> /// <typeparam name="T">The 1st type parameter.</typeparam> public static LogWraper GetLog <T>() { LogWraper log = new LogWraper(); log.owner = typeof(T).ToString(); log.hint = "[" + log.owner + "]"; return(log); }
/// <summary> /// Initializes a new instance. /// </summary> public MessageRouter() { //listeners = new Dictionary<T, CustomerAction<T, Object>>(); listeners = new Dictionary <T, List <CustomerAction <T, object> > >(); log = LogWraper.GetLog <T>(); }
static GlobalLog() { instance = new GlobalLog(); instance.log = LogWraper.GetLog <GlobalLog>(); }