Logger wrapper for System.Diagnostics.TraceSource logger.
Наследование: InternalLogger
Пример #1
0
        private Logger(Type type)
        {
            loggers = new List <InternalLogger>();

            InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);

            loggers.Add(log4netLogger);
#if BCL
            InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);
            loggers.Add(sdLogger);
#endif
#if UNITY
            UnityDebugLogger debugLogger = new UnityDebugLogger(type);
            loggers.Add(debugLogger);
#endif
#if __ANDROID__ || __IOS__
            InternalConsoleLogger consoleLogger = new InternalConsoleLogger(type);
            loggers.Add(consoleLogger);
#endif
#if PCL
            InternalFileLogger fileLogger = new InternalFileLogger(type);
            loggers.Add(fileLogger);
#endif

            ConfigureLoggers();
            AWSConfigs.PropertyChanged += ConfigsChanged;
        }
Пример #2
0
        private Logger(Type type)
        {
            loggers = new List<InternalLogger>();

            InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);
            loggers.Add(log4netLogger);
#if BCL
            InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);
            loggers.Add(sdLogger);
#endif
#if AWSSDK_UNITY
            UnityDebugLogger debugLogger = new UnityDebugLogger(type);
            loggers.Add(debugLogger);
#endif
#if __ANDROID__ || __IOS__
            InternalConsoleLogger consoleLogger = new InternalConsoleLogger(type);
            loggers.Add(consoleLogger);
#endif
#if PCL
            InternalFileLogger fileLogger = new InternalFileLogger(type);
            loggers.Add(fileLogger);
#endif
            ConfigureLoggers();
            AWSConfigs.PropertyChanged += ConfigsChanged;
        }
Пример #3
0
        private Logger(Type type)
        {
            loggers = new List<InternalLogger>();

            InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);
            loggers.Add(log4netLogger);
#if BCL
            InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);
            loggers.Add(sdLogger);
#endif
            ConfigureLoggers();
            AWSConfigs.PropertyChanged += ConfigsChanged;
        }
Пример #4
0
        private Logger(Type type)
        {
            loggers = new List <InternalLogger>();

            InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);

            loggers.Add(log4netLogger);
            InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);

            loggers.Add(sdLogger);

            ConfigureLoggers();
            AWSConfigs.PropertyChanged += ConfigsChanged;
        }
Пример #5
0
        private Logger(Type type)
        {
            loggers = new List <InternalLogger>();

            InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);

            loggers.Add(log4netLogger);
            loggers.Add(new InternalConsoleLogger(type));
#if !NETSTANDARD13
            InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);
            loggers.Add(sdLogger);
#endif
            ConfigureLoggers();
            AWSConfigs.PropertyChanged += ConfigsChanged;
        }
Пример #6
0
        private Logger(Type type)
        {
            loggers = new List <InternalLogger>();

            InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);

            loggers.Add(log4netLogger);
#if BCL
            InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);
            loggers.Add(sdLogger);
#endif
#if AWSSDK_UNITY
            UnityDebugLogger debugLogger = new UnityDebugLogger(type);
            loggers.Add(debugLogger);
#endif
            ConfigureLoggers();
            AWSConfigs.PropertyChanged += ConfigsChanged;
        }
Пример #7
0
        private Logger(Type type)
        {
            loggers = new List<InternalLogger>();

            InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);
            loggers.Add(log4netLogger);

#if __IOS__ || __ANDROID__
            MobileLogger logger = new MobileLogger(type);
            loggers.Add(logger);
#endif

#if BCL
            InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);
            loggers.Add(sdLogger);
#endif
#if PCL
            InternalConsoleLogger dbLogger = new InternalConsoleLogger(type);
            loggers.Add(dbLogger);
#endif

            ConfigureLoggers();
            AWSConfigs.PropertyChanged += ConfigsChanged;
        }
Пример #8
0
        private Logger(Type type)
        {
            loggers = new List <InternalLogger>();

            InternalLog4netLogger log4netLogger = new InternalLog4netLogger(type);

            loggers.Add(log4netLogger);
            loggers.Add(new InternalConsoleLogger(type));
#if BCL || (NETSTANDARD && !NETSTANDARD13)
            InternalSystemDiagnosticsLogger sdLogger = new InternalSystemDiagnosticsLogger(type);
            loggers.Add(sdLogger);
#endif
#if UNITY
            UnityDebugLogger debugLogger = new UnityDebugLogger(type);
            loggers.Add(debugLogger);
#endif
#if PCL
            InternalFileLogger fileLogger = new InternalFileLogger(type);
            loggers.Add(fileLogger);
#endif

            ConfigureLoggers();
            AWSConfigs.PropertyChanged += ConfigsChanged;
        }