math-suite/Source/GraphingCalculator/Log.cs

19 lines
473 B
C#
Raw Permalink Normal View History

2018-02-05 23:24:46 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace GraphingCalculator
{
public static class Log
{
private static List<string> entries = new List<string>();
public static List<string> Entries { get { return entries; } }
public static void LogEvent (string format, params object[] p)
{
entries.Add(DateTime.Now + ": " + String.Format(format, p));
}
}
}