LoggingGetLogger Method (IActorContext, ILogMessageFormatter) |
Gets the logger.
Namespace: Akka.EventAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic static LoggingAdapter GetLogger(
this IActorContext context,
ILogMessageFormatter logMessageFormatter = null
)
<ExtensionAttribute>
Public Shared Function GetLogger (
context As IActorContext,
Optional logMessageFormatter As ILogMessageFormatter = Nothing
) As LoggingAdapter
public:
[ExtensionAttribute]
static LoggingAdapter^ GetLogger(
IActorContext^ context,
ILogMessageFormatter^ logMessageFormatter = nullptr
)
[<ExtensionAttribute>]
static member GetLogger :
context : IActorContext *
?logMessageFormatter : ILogMessageFormatter
(* Defaults:
let _logMessageFormatter = defaultArg logMessageFormatter null
*)
-> LoggingAdapter
Parameters
- context
- Type: Akka.ActorIActorContext
The cell. - logMessageFormatter (Optional)
- Type: Akka.EventILogMessageFormatter
The log message formatter.
Return Value
Type:
LoggingAdapterLoggingAdapter.
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