}         // RtfInterpreterListenerLogger

        // ----------------------------------------------------------------------
        public RtfInterpreterListenerLogger(RtfInterpreterLoggerSettings settings, ILogger logger)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            this.settings = settings;
            this.logger   = logger;
        }         // RtfInterpreterListenerLogger
        }         // RtfInterpreterListenerFileLogger

        // ----------------------------------------------------------------------
        public RtfInterpreterListenerFileLogger(string fileName, RtfInterpreterLoggerSettings settings)
        {
            if (fileName == null)
            {
                throw new ArgumentNullException("fileName");
            }
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            this.fileName = fileName;
            this.settings = settings;
        }         // RtfInterpreterListenerFileLogger
        // ----------------------------------------------------------------------
        public RtfInterpreterListenerFileLogger( string fileName, RtfInterpreterLoggerSettings settings )
        {
            if ( fileName == null )
            {
                throw new ArgumentNullException( "fileName" );
            }
            if ( settings == null )
            {
                throw new ArgumentNullException( "settings" );
            }

            this.fileName = fileName;
            this.settings = settings;
        }
示例#4
0
        } // RtfInterpreterListenerFileLogger

        public RtfInterpreterListenerFileLogger(string fileName, RtfInterpreterLoggerSettings settings)
        {
            if (fileName == null)
            {
                throw new ArgumentNullException(nameof(fileName));
            }
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            FileName = fileName;
            Settings = settings;
        } // RtfInterpreterListenerFileLogger
        // ----------------------------------------------------------------------
        public RtfInterpreterListenerLogger( RtfInterpreterLoggerSettings settings, ILogger logger )
        {
            if ( settings == null )
            {
                throw new ArgumentNullException( "settings" );
            }
            if ( logger == null )
            {
                throw new ArgumentNullException( "logger" );
            }

            this.settings = settings;
            this.logger = logger;
        }
        }         // RtfInterpreterListenerLogger

        // ----------------------------------------------------------------------
        public RtfInterpreterListenerLogger(RtfInterpreterLoggerSettings settings) :
            this(settings, systemLogger)
        {
        }         // RtfInterpreterListenerLogger
 // ----------------------------------------------------------------------
 public RtfInterpreterListenerLogger( RtfInterpreterLoggerSettings settings )
     : this(settings, systemLogger)
 {
 }