Esempio n. 1
0
 /// <summary>
 /// Exports the <see cref="LogMessage"/> with its data into a comma seperated line.
 /// </summary>
 /// <returns>The <see cref="LogMessage"/> with its data as a comma seperated line.</returns>
 public override string GetCsvLine()
 {
     return(string.Format("\"{0}\",\"{1}\",\"{2}\",\"{3}\",\"{4}\",\"{5}\",\"{6}\",\"{7}\"{8}"
                          , Index.ToCsv()
                          , Level.ToCsv()
                          , Timestamp.ToString(Settings.Default.TimestampFormat)
                          , Logger.ToCsv()
                          , Category.ToCsv()
                          , Username.ToCsv()
                          , InstanceId.ToCsv()
                          , Message.ToCsv()
                          , Environment.NewLine));
 }