Skip to content

provideLumberjack

provideLumberjack(options?): Provider[]

Defined in: packages/ngworker/lumberjack/src/lib/configuration/provide-lumberjack.ts:53

Returns the dependency-injection providers for the LumberjackOptions, LumberjackConfig and LumberjackLogDriverConfig.

Partial<LumberjackConfig<void>>

Provider[]

The function is useful when you want to bootstrap an application using the bootstrapApplication function and want to make available the Lumberjack providers.

bootstrapApplication(RootComponent, {
  providers: [
   provideLumberjack({...})
  ]
});