Esempio n. 1
0
        public LogHandler(PersistedObjectSequence<LoggingEvent> sequence, FileHandlerFactoryLocator fileHandlerFactoryLocator, bool writeToConsole, DelegateQueue delegateQueue)
            : base(fileHandlerFactoryLocator)
        {
            this.sequence = sequence;
            this.delegateQueue = delegateQueue;
            this.writeToConsole = writeToConsole;

            this.sequence.ReadSequence(DateTime.MaxValue, 1, loggingEvent =>
            {
                if (null != loggingEvent.Classname)
                    this.classNames.Add(loggingEvent.Classname);

                if (null != loggingEvent.ExceptionClassname)
                    this.classNames.Add(loggingEvent.ExceptionClassname);

                return false;
            });
        }
Esempio n. 2
0
 //static ILog log = LogManager.GetLogger<UserHandler>();
 internal UserHandler(PersistedObject<UserData> persistedUserData, PersistedObjectSequence<Notification> persistedNotifications, FileHandlerFactoryLocator fileHandlerFactoryLocator)
     : base(fileHandlerFactoryLocator)
 {
     this.persistedUserData = persistedUserData;
     this.persistedNotifications = persistedNotifications;
 }