LogEntryMessage Property |
Namespace: Telogis.GeoBase.Diagnostics
class MyLogClass { static ILogger _log; static void Main() { // Use the LogEventHandler to handle every log event. Log.LogEvent += new LogEventHandler(Log_LogEvent); // Create the log category. _log = Log.WithCategory("My Test Category"); // Create the log type and content. _log.Info("Message is {0}", "Hello World"); Console.ReadKey(); } public static void Log_LogEvent(LogEntry ev) { // Write out the log message to the console. System.Console.Out.WriteLine("Message: " + ev.Message); } }