Trace

Outputs trace messages during execution.
This module has no effect on documents and the input documents are passed through to output documents.

Usage

  • Trace(ContextConfig content)

    Outputs the string value of the returned object to trace. This allows you to trace different content depending on the execution context.

    • content

      A delegate that returns the content to trace.

  • Trace(DocumentConfig content)

    Outputs the string value of the returned object to trace. This allows you to trace different content for each document depending on the input document.

    • content

      A delegate that returns the content to trace.

  • Trace(params IModule[] modules)

    The specified modules are executed against an empty initial document and the resulting document content is output to trace.

    • modules

      The modules to execute.

  • Trace(Object content)

    Outputs the string value of the specified object to trace.

    • content

      The content to trace.

Fluent Methods

Chain these methods together after the constructor to modify behavior.

  • EventType(TraceEventType traceEventType)

    Sets the event type to trace.

    • traceEventType

      The event type to trace.

GitHub