Click or drag to resize

ILogManagerGetLogger Method (String, String, FuncBoolean)

Returns a named logger.

Namespace:  Neon.Diagnostics
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
INeonLogger GetLogger(
	string module = null,
	string contextId = null,
	Func<bool> isLogEnabledFunc = null


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: INeonLogger
The INeonLogger instance.
See Also