Click or drag to resize

LogError Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Logs an error of an unknown type.

Namespace:  Telogis.GeoBase.Diagnostics
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static void Error(
	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.Error("Error 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