LogInfo Method |
Namespace: Telogis.GeoBase.Diagnostics
class MyLogClass { static void Main() { // Use the LogEventHandler to handle the log event. Log.LogEvent += new LogEventHandler(Log_LogEvent); // Compare two numbers then create an information log. string a = "1"; string b = "2"; if (Log.Equals(a, b) == true) { Log.Info("The two numbers are the same"); } else { Log.Info("The two numbers are not the same"); } Console.ReadKey(); } public static void Log_LogEvent(LogEntry ev) { // Write out the log message to the console. System.Console.Out.WriteLine(ev); } }