Click or drag to resize

LogTrace Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Logs a trace message for debugging purposes.

Namespace:  Telogis.GeoBase.Diagnostics
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static void Trace(
	string message,
	params Object[] formatArgs
)

Parameters

message
Type: SystemString
The message that describes the error.
formatArgs
Type: SystemObject
Parameters to include in the message.
Examples
C#
class MyLogClass
{
    static void Main()
    {
        // Use the LogEventHandler to handle the log event.
        Log.LogEvent += new LogEventHandler(Log_LogEvent);
        // Create the log type.
        Log.Trace("Trace message {0}", 1234);
        Console.ReadKey();
    }
    public static void Log_LogEvent(LogEntry ev)
    {
        // Write out the log message to the console.
        System.Console.Out.WriteLine(ev);
    }
}
See Also