Class DefaultLogMessageFormatter
This class represents an ILoggingAdapter implementation that uses Format(string, params object[]) to format log messages.
Implements
Inherited Members
Namespace: Akka.Event
Assembly: Akka.dll
Syntax
public class DefaultLogMessageFormatter : ILogMessageFormatter
Fields
| Edit this page View SourceInstance
Declaration
public static readonly DefaultLogMessageFormatter Instance
Field Value
Type | Description |
---|---|
DefaultLogMessageFormatter |
Methods
| Edit this page View SourceFormat(string, IEnumerable<object>)
Formats a string without explicit array allocation.
Declaration
public string Format(string format, IEnumerable<object> args)
Parameters
Type | Name | Description |
---|---|---|
string | format | The string that is being formatted. |
IEnumerable<object> | args | An optional list of items used to format the string. |
Returns
Type | Description |
---|---|
string | The given string that has been correctly formatted. |
Remarks
Delays array allocation until formatting time.
Format(string, params object[])
Formats a specified composite string using an optional list of item substitutions.
Declaration
public string Format(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
string | format | The string that is being formatted. |
object[] | args | An optional list of items used to format the string. |
Returns
Type | Description |
---|---|
string | The given string that has been correctly formatted. |