UNPKG

@inward/extension-logging

Version:

LoopBack Logging for Winston and Fluentd

23 lines (22 loc) 623 B
import { Binding, Component, ProviderMap } from '@inward/core'; /** * Configuration for LoggingComponent */ export declare type LoggingComponentConfig = { /** * A flag to enable fluent, default to `true` */ enableFluent?: boolean; /** * A flag to enable Winston-based http access log, default to `true` */ enableHttpAccessLog?: boolean; }; /** * A component providing logging facilities */ export declare class LoggingComponent implements Component { providers: ProviderMap; bindings: Binding<unknown>[]; constructor(loggingConfig: LoggingComponentConfig | undefined); }