Trace Write Method (Func String , MessageType, Nullable Guid )NFX Class Library

[This is preliminary documentation and is subject to change.]

A simplified method for tracing that doesn't evaluate text generation function if tracing is disabled by configuration

Namespace: NFX
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

[ConditionalAttribute("TRACE")]
public static void Write(
	Func<string> textFunc,
	MessageType type = MessageType.Trace,
	Nullable<Guid> correlationContext = null
)

Parameters

textFunc
Type: OnlineSystem Func OnlineString 
Functor to evaluate to get the text sent to logger
type (Optional)
Type: NFX.Log MessageType
Message type to log
correlationContext (Optional)
Type: OnlineSystem Nullable OnlineGuid 
Optional correlation token to relate log entries
See Also