Click or drag to resize
Akka.NETLoggingGetLogger Method (IActorContext, ILogMessageFormatter)
Creates a new logging adapter using the specified context's event stream.

Namespace:  Akka.Event
Assembly:  Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static ILoggingAdapter GetLogger(
	this IActorContext context,
	ILogMessageFormatter logMessageFormatter = null
)

Parameters

context
Type: Akka.ActorIActorContext
The context used to configure the logging adapter.
logMessageFormatter (Optional)
Type: Akka.EventILogMessageFormatter
The formatter used to format log messages.

Return Value

Type: ILoggingAdapter
The newly created logging adapter.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IActorContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also