/// <summary> /// Creates a log entry with the specified information and writes it to this log. /// </summary> /// <param name="entryType">The type of event for this log entry.</param> /// <param name="sourceId">A user-defined id which represents the source of the log entry.</param> /// <param name="message">The message for this log entry.</param> public void Write(Logging.LogEntryType entryType, string sourceId, string message) => Write(new Logging.ILogEntry[] { new Logging.LogEntry(entryType, sourceId, message) });
/// <summary> /// Add a <see cref="Logging.ILogEntry"/> to the <see cref="Logging.Logs"/> with the given information. /// </summary> /// <param name="entryType">The type of log entry.</param> /// <param name="sourceId">The source of the log entry.</param> /// <param name="message">The log entry's message.</param> /// <param name="eventId">The event id of the log entry.</param> /// <param name="category">The category for this log entry.</param> /// <param name="timeStamp">The <see cref="DateTimeOffset"/> the log entry occurred.</param> public void Write(Logging.LogEntryType entryType, string sourceId, string message, int eventId, ushort category, DateTimeOffset timeStamp) => Write(new Logging.LogEntry(entryType, sourceId, message, eventId, category, timeStamp));
/// <summary> /// Creates a log entry with the specified information and writes it to this log. /// </summary> /// <param name="entryType">The type of event for this log entry.</param> /// <param name="sourceId">A user-defined id which represents the source of the log entry.</param> /// <param name="message">The message for this log entry.</param> /// <param name="eventId">The event identifier for this log entry.</param> /// <param name="category">The category number for this log entry.</param> public void Write(Logging.LogEntryType entryType, string sourceId, string message, int eventId, ushort category) => Write(new Logging.ILogEntry[] { new Logging.LogEntry(entryType, sourceId, message, eventId, category) });
/// <summary> /// Add a <see cref="Logging.ILogEntry"/> to the <see cref="Logging.Logs"/> with the given information. /// </summary> /// <param name="entryType">The type of log entry.</param> /// <param name="sourceId">The source of the log entry.</param> /// <param name="message">The log entry's message.</param> /// <param name="eventId">The event id of the log entry.</param> public void Write(Logging.LogEntryType entryType, string sourceId, string message, int eventId) => Write(new Logging.LogEntry(entryType, sourceId, message, eventId, 0, DateTimeOffset.Now));