Click or drag to resize

LogInfo Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Logs an information message.

Namespace:  Telogis.GeoBase.Diagnostics
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static void Info(
	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);
        // Compare two numbers then create an information log.
        string a = "1";
        string b = "2";
        if (Log.Equals(a, b) == true)
            {
                Log.Info("The two numbers are the same");
            }
            else
            {
                Log.Info("The two numbers are not the same");
            }
        Console.ReadKey();
    }
    public static void Log_LogEvent(LogEntry ev)
    {
        // Write out the log message to the console.
        System.Console.Out.WriteLine(ev);
    }
}
See Also