Click or drag to resize

LogLogEvent Event

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Called when an entry is written to the log.

Namespace:  Telogis.GeoBase.Diagnostics
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static event LogEventHandler LogEvent

Value

Type: Telogis.GeoBase.DiagnosticsLogEventHandler
Examples
C#
class MyLogClass
{
    static void Main() {
        // Use LogEventHandler to handle log events.
        Log.LogEvent += new LogEventHandler(Log_LogEvent);
        // 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 entry to the console.
        System.Console.Out.WriteLine("Log message: " + ev.Message);
    }
}
See Also