dynamic-forms / Function

withLogger

Configure logging for dynamic forms.

Presentation

function withLogger(
  options: LoggerFeatureOptions = {},
): DynamicFormFeature<"logger">;

Returns

DynamicFormFeature<"logger"> -

A DynamicFormFeature that configures logging

Parameters

NameTypeDescription
options
LoggerFeatureOptions

Logger configuration options

Example usage

// Set log level
provideDynamicForm(
  ...withMaterialFields(),
  withLogger({ level: LogLevel.Debug })
)

// Disable logging entirely
provideDynamicForm(
  ...withMaterialFields(),
  withLogger({ level: LogLevel.Off })
)

// Custom logger implementation
provideDynamicForm(
  ...withMaterialFields(),
  withLogger({ logger: mySentryLogger })
)