/// <summary> /// Converts the <see cref="ILogEntry"/> into its equivalent string representation. /// </summary> /// <param name="entry">The <see cref="ILogEntry"/> to convert.</param> /// <param name="writeLocalTime">Sets whether the date is written to the log relative to UTC or the local computer's timezone.</param> /// <returns>The string representation of the <paramref name="entry"/>.</returns> public static string Format(ILogEntry entry, bool writeLocalTime) { return(LoggingHelper.FormatLogLine(entry, writeLocalTime)); }
/// <summary> /// Converts the string representation of a log entry into its <see cref="LogEntry"/> equivalent. /// </summary> /// <param name="line">The string containing the log entry to convert.</param> /// <returns>The <paramref name="line"/> converted into a <see cref="LogEntry"/> or null, <b>Nothing</b> in VB.</returns> public static LogEntry Parse(string line) { return(LoggingHelper.ParseLogLine(line)); }