| LoggingGetLogger Method (LoggingBus, Object, ILogMessageFormatter) |
Creates a new logging adapter that writes to the specified logging bus.
Namespace:
Akka.Event
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static ILoggingAdapter GetLogger(
LoggingBus loggingBus,
Object logSourceObj,
ILogMessageFormatter logMessageFormatter = null
)
static member GetLogger :
loggingBus : LoggingBus *
logSourceObj : Object *
?logMessageFormatter : ILogMessageFormatter
(* Defaults:
let _logMessageFormatter = defaultArg logMessageFormatter null
*)
-> ILoggingAdapter
Parameters
- loggingBus
- Type: Akka.EventLoggingBus
The bus on which this logger writes. - 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