Beispiel #1
0
        public static Logger CreateInstance(string Application, LoggerConfiguration Config)
        {
            LogInstance i = new LogInstance();
            i.Config = Config;
            i.Assembly = Assembly.GetCallingAssembly();
            i.Application = Application;

            Logger l = new Logger(i);

            return l;
        }
Beispiel #2
0
        internal static Logger CreateInstance(Assembly assem, LoggerConfiguration Config)
        {
            LogInstance i = new LogInstance();

            i.Config      = Config;
            i.Assembly    = assem;
            i.Application = assem.FullName;

            Logger l = new Logger(i);

            return(l);
        }
Beispiel #3
0
        public static Logger CreateInstance(string Application, LoggerConfiguration Config)
        {
            LogInstance i = new LogInstance();

            i.Config      = Config;
            i.Assembly    = Assembly.GetCallingAssembly();
            i.Application = Application;

            Logger l = new Logger(i);

            return(l);
        }
Beispiel #4
0
        public static Logger CreateInstance(LoggerConfiguration Config)
        {
            Assembly assem = Assembly.GetCallingAssembly();

            LogInstance i = new LogInstance();

            i.Config      = Config;
            i.Assembly    = assem;
            i.Application = assem.FullName;

            Logger l = new Logger(i);

            return(l);
        }
Beispiel #5
0
        public static Logger CreateInstance(LoggerConfiguration Config)
        {
            Assembly assem = Assembly.GetCallingAssembly();

            LogInstance i = new LogInstance();
            i.Config = Config;
            i.Assembly = assem;
            i.Application = assem.FullName;

            Logger l = new Logger(i);

            return l;
        }
Beispiel #6
0
        internal Logger(LogInstance logger)
        {
            Instances.Add(logger);

            _LogInstantation = logger.Application;
        }
Beispiel #7
0
        internal static Logger CreateInstance(Assembly assem, LoggerConfiguration Config)
        {
            LogInstance i = new LogInstance();
            i.Config = Config;
            i.Assembly = assem;
            i.Application = assem.FullName;

            Logger l = new Logger(i);

            return l;
        }
Beispiel #8
0
        private static LogInstance GetByAssembly(Assembly assem)
        {
            LogInstance inst = Instances.Find(delegate(LogInstance i) { return(i.Assembly == assem); });

            return(inst);
        }
Beispiel #9
0
        private static LogInstance GetByApplication(string Application)
        {
            LogInstance inst = Instances.Find(delegate(LogInstance i) { return(i.Application == Application); });

            return(inst);
        }
Beispiel #10
0
        public static LoggerConfiguration GetConfiguration(LogMessage m)
        {
            LogInstance inst = GetByAssembly(m.Assembly);

            return(inst.Config);
        }
Beispiel #11
0
        internal Logger(LogInstance logger)
        {
            Instances.Add(logger);

            _LogInstantation = logger.Application;
        }