Exemplo n.º 1
0
        /// <summary>Builds the event log message.</summary>
        /// <param name="entry">The entry that will be used to build the message.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="entry"/> is null.</exception>
        /// <returns>The message.</returns>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="entry"/> is a null (Nothing
        /// in VB) reference.</exception>
        protected virtual string BuildEventLogMessage(LogEntry entry)
        {
            if (entry == null)
            {
                throw new ArgumentNullException("entry");
            }

            return(LoggingHelper.BuildMessageFromLogEntry(entry));
        }
 /// <summary>Builds the event log message.</summary>
 /// <param name="entry">The entry that will be used to build the message.</param>
 /// <exception cref="ArgumentNullException">Thrown when <paramref name="entry"/> is null.</exception>
 /// <returns>The message.</returns>
 protected virtual string BuildMailBody(LogEntry entry)
 {
     return(LoggingHelper.BuildMessageFromLogEntry(entry));
 }