/// <summary> /// Log an Event with the template string passed, in <see cref="string.Format(string,object)"/>-style. /// </summary> /// <param name="logger">The logger to invoke the Log call on</param> /// <param name="level">The level that the log format is at</param> /// <param name="formatStringMessage">Message to log, may contain C#-esque format placeholders.</param> /// <param name="args">Arguments to the format string</param> public static void LogEventFormat(this Logger logger, LogLevel level, string formatStringMessage, params object[] args) { if (logger == null) { throw new ArgumentNullException("logger"); } if (level == null) { throw new ArgumentNullException("level"); } if (formatStringMessage == null) { throw new ArgumentNullException("formatStringMessage"); } logger.Log(MessageModule.EventFormat(level, formatStringMessage, args)).Start(); }