コード例 #1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="logEntry">New log entry.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>logEntry</b> is null.</exception>
        public WriteLogEventArgs(LogEntry logEntry)
        {
            if (logEntry == null)
            {
                throw new ArgumentNullException("logEntry");
            }

            m_pLogEntry = logEntry;
        }
コード例 #2
0
ファイル: Logger.cs プロジェクト: Inzaghi2012/teamlab.v7.5
 /// <summary>
 /// Raises WriteLog event.
 /// </summary>
 /// <param name="entry">Log entry.</param>
 private void OnWriteLog(LogEntry entry)
 {
     if (WriteLog != null)
     {
         WriteLog(this, new WriteLogEventArgs(entry));
     }
 }