 | ILogManagerGetLogger Method (String, String, FuncBoolean) |
Returns a named logger.
Namespace:
Neon.Diagnostics
Assembly:
Neon.Common (in Neon.Common.dll) Version: 2.14.0
SyntaxINeonLogger GetLogger(
string module = null,
string contextId = null,
Func<bool> isLogEnabledFunc = null
)
Function GetLogger (
Optional module As String = Nothing,
Optional contextId As String = Nothing,
Optional isLogEnabledFunc As Func(Of Boolean) = Nothing
) As INeonLogger
INeonLogger^ GetLogger(
String^ module = nullptr,
String^ contextId = nullptr,
Func<bool>^ isLogEnabledFunc = nullptr
)
abstract GetLogger :
?module : string *
?contextId : string *
?isLogEnabledFunc : Func<bool>
(* Defaults:
let _module = defaultArg module null
let _contextId = defaultArg contextId null
let _isLogEnabledFunc = defaultArg isLogEnabledFunc null
*)
-> INeonLogger
Parameters
- module (Optional)
- Type: SystemString
The case sensitive logger event source module (defaults to null). - contextId (Optional)
- Type: SystemString
Optionally specifies additional information that can be used to identify
context for logged events. For example, the Neon.Cadence client uses this
to record the ID of the workflow recording events.
- isLogEnabledFunc (Optional)
- Type: SystemFuncBoolean
Optionally specifies a function that will be called at runtime to
determine whether to actually log an event. This defaults to null
which will always log events.
Return Value
Type:
INeonLoggerThe
INeonLogger instance.
See Also