static void Main(string[] args) { ApplicationLogging newLog = new ApplicationLogging(); newLog.LogInit(@"C:\Data\TestAppLogging", @"KenSucks", ".log", true, true); newLog.Info("Test Info Ken Sucks"); newLog.Error("Test Error Ken Sucks"); newLog.Runtime("Test Runtime Ken Sucks"); newLog.DataList("Test, Test, Test, Test"); newLog.Close(); }
/// <summary> /// Initialize te program by getting all of the settings and starting the log file /// </summary> private void InitializeProgram() { InitializeLog(); Log.Runtime("Start Log: Session: " + DateTime.Now.ToString()); }