@ngworker/lumberjack
Version:
Lumberjack is a versatile Angular logging library, specifically designed to be extended and customized
24 lines (23 loc) • 816 B
TypeScript
import { Provider } from '@angular/core';
import { LumberjackConsoleDriverConfig } from './lumberjack-console-driver.config';
/**
* Returns the [dependency-injection providers](https://angular.io/guide/glossary#provider)
*
* for the `LumberjackConsoleDriver` and its `LumberjackConsoleDriverConfig`.
* @usageNotes
*
* The function is useful when you want to bootstrap an application using
* the `bootstrapApplication` function and want to make available the `LumberjackConsoleDriver` providers.
*
* ```typescript
* bootstrapApplication(RootComponent, {
* providers: [
* provideLumberjack({...}),
* provideLumberjackConsoleDriver({...})
* ]
* });
* ```
*
* @publicApi
*/
export declare function provideLumberjackConsoleDriver(config?: Partial<LumberjackConsoleDriverConfig>): Provider[];