예제 #1
0
        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();
        }
예제 #2
0
 /// <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());
 }