Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LogFile"/> class.
        /// </summary>
        public LogFile()
            : base()
        {
            m_fileName            = DefaultFileName;
            m_fileSize            = DefaultFileSize;
            m_fileFullOperation   = DefaultFileFullOperation;
            m_logFilesDuration    = DefaultLogFilesDuration;
            m_persistSettings     = DefaultPersistSettings;
            m_settingsCategory    = DefaultSettingsCategory;
            m_textEncoding        = Encoding.Default;
            m_operationWaitHandle = new ManualResetEvent(true);
            m_savedFilesWithTime  = new Dictionary <DateTime, string>();
            m_logEntryQueue       = ProcessList <string> .CreateRealTimeQueue(WriteLogEntries);

            this.FileFull += LogFile_FileFull;
            m_logEntryQueue.ProcessException += ProcessExceptionHandler;
        }