@ngworker/lumberjack
Version:
Lumberjack is a versatile Angular logging library, specifically designed to be extended and customized
27 lines (26 loc) • 1.08 kB
TypeScript
import { Provider } from '@angular/core';
import { LumberjackLogDriverConfig } from './lumberjack-log-driver.config';
import { LumberjackConfig } from './lumberjack.config';
import { LumberjackOptions } from './lumberjack.options';
export declare function configFactory(isProductionEnvironment: boolean, options?: LumberjackOptions): LumberjackConfig;
export declare function logDriverConfigFactory({ levels }: LumberjackConfig): Omit<LumberjackLogDriverConfig, 'identifier'>;
/**
* Returns the [dependency-injection providers](https://angular.io/guide/glossary#provider)
* for the `LumberjackOptions`, `LumberjackConfig` and `LumberjackLogDriverConfig`.
*
* @usageNotes
*
* The function is useful when you want to bootstrap an application using
* the `bootstrapApplication` function and want to make available the `Lumberjack` providers.
*
* ```typescript
* bootstrapApplication(RootComponent, {
* providers: [
* provideLumberjack({...})
* ]
* });
* ```
*
* @publicApi
*/
export declare function provideLumberjack(options?: LumberjackOptions): Provider[];