Пример #1
0
        /// <summary>Implements the functionality to log the event.</summary>
        /// <param name="entry">The entry to log.</param>
        /// <returns>Returns null.</returns>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="entry"/> is a null (Nothing
        /// in VB) reference.</exception>
        protected override object LogInternal(LogEntry entry)
        {
            if (entry == null)
            {
                throw new ArgumentNullException("entry");
            }

            string formattedEvent = LoggingHelper.FormatEvent(entry);

            this.writeToDebugWindow(formattedEvent);

            // Returning an ID is inappropriate for this type of logger.
            return(null);
        }