Click or drag to resize

LogEntryDirection Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets the LogDirection enumeration.

Namespace:  Telogis.GeoBase.Diagnostics
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public LogDirection Direction { get; }

Property Value

Type: LogDirection
Examples
C#
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 direction to the console.
        // Will be empty/none.
        System.Console.Out.WriteLine("Log direction: " + ev.Direction);
    }
}
See Also