 | LoggingGetLogger Method (ActorSystem, Object, ILogMessageFormatter) |
Creates a new logging adapter using the specified system's event stream.
Namespace:
Akka.Event
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxpublic static ILoggingAdapter GetLogger(
ActorSystem system,
Object logSourceObj,
ILogMessageFormatter logMessageFormatter = null
)
static member GetLogger :
system : ActorSystem *
logSourceObj : Object *
?logMessageFormatter : ILogMessageFormatter
(* Defaults:
let _logMessageFormatter = defaultArg logMessageFormatter null
*)
-> ILoggingAdapter
Parameters
- system
- Type: Akka.ActorActorSystem
The system used to configure the logging adapter. - logSourceObj
- Type: SystemObject
The source that produces the log events. - logMessageFormatter (Optional)
- Type: Akka.EventILogMessageFormatter
The formatter used to format log messages.
Return Value
Type:
ILoggingAdapterThe newly created logging adapter.
See Also