Skip to main content

Info Method

Writes an informational-level log entry.

Definition​

Namespace: GHost.Core.Logging.Context
Type: ILogger
Assembly: GHost.Core.dll

Overloads​

NameDescription
Info(string)Writes an informational log entry.
Info(string, string, object[])Writes a formatted informational log entry with a log code.
Info(string, ILogContext, string, object[])Writes a formatted informational log entry with a log code and context.

Remarks​

The overloads of this method that include a code parameter allow you to specify a unique code (mnemonic or otherwise) that identifies the log message. See the Log Codes page for more information on log codes and how to use them effectively.


Info(string message)​

Writes an informational log entry with the specified message.

void Info(string message);

Parameters​

message string
The log message.


Info(string code, string message, params object[] args)​

Writes a formatted informational log entry with a log code.

void Info(string code, string message, params object[] args);

Parameters​

code string
A unique code (mnemonic or otherwise) that identifies the log message.

message string
A string containing the message and format items to log.

args object[]
A params array of objects that match the format items in the message to provide them with values.


Info(string code, ILogContext context, string message, params object[] args)​

Writes a formatted informational log entry with a log code and context.

void Info(string code, ILogContext context, string message, params object[] args);

Parameters​

code string
A unique code (mnemonic or otherwise) that identifies the log message.

context ILogContext
An instance to provide an additional log context to the log entry.

message string
A string containing the message and format items to log.

args object[]
A params array of objects that match the format items in the message to provide them with values.