Esempio n. 1
0
 public void Info(string message)
 {
     if (shouldLog())
     {
         sLog.Information(makeMessage(message));
     }
 }
Esempio n. 2
0
        public static void WriteTable(IEnumerable <string> headers, IEnumerable <IEnumerable <string> > values)
        {
            var table = new ConsoleTables.ConsoleTable(headers.ToArray());

            foreach (var row in values)
            {
                table.AddRow(row.ToArray());
            }

            Log.Information(Environment.NewLine + table.ToString());
        }