ILog InfoFormat Method (String, Object, Object) | Apache log4net™ SDK Documentation

Logs a formatted message string with the Info level.

Namespace: log4net
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    void InfoFormat(
    	string format,
    	Object arg0,
    	Object arg1
    )

    Sub InfoFormat (
    	format As String,
    	arg0 As Object,
    	arg1 As Object
    )

    void InfoFormat(
    	String^ format,
    	Object^ arg0,
    	Object^ arg1
    )

    abstract InfoFormat :
            format : string *
            arg0 : Object *
            arg1 : Object -> unit

#### Parameters

format
  Type: System
  String
  A String containing zero or more format items
arg0
  Type: System
  Object
  An Object to format
arg1
  Type: System
  Object
  An Object to format

Remarks

The message is formatted using the String.Format method. See [M:String.Format(string, object[])] for details of the syntax of the format string and the behavior of the formatting.

This method does not take an Exception object to include in the log event. To pass an Exception use one of the [M:Info(object,Exception)] methods instead.

See Also

#### Reference

ILog Interface
InfoFormat Overload
log4net Namespace
[M:Info(object)]
ILog
IsInfoEnabled