Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
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;
        }