UNPKG

@loopback/logging

Version:

An extension exposes logging for Winston and Fluentd with LoopBack 4

29 lines (28 loc) 973 B
import { BindingKey, Interceptor } from '@loopback/core'; import { FluentSender } from 'fluent-logger'; import WinstonTransport from 'winston-transport'; import { LoggingComponent } from './logging.component'; import { WinstonLogger } from './winston'; /** * Binding keys used by this component. */ export declare namespace LoggingBindings { const COMPONENT: BindingKey<LoggingComponent>; const FLUENT_SENDER: BindingKey<FluentSender<any>>; /** * Binding key for winston logger */ const WINSTON_LOGGER: BindingKey<WinstonLogger>; /** * Binding key for winston transport backed by fluent */ const WINSTON_TRANSPORT_FLUENT: BindingKey<WinstonTransport>; /** * Binding key for method invocation logger with winston */ const WINSTON_INVOCATION_LOGGER: BindingKey<Interceptor>; /** * Binding key for http access logger with winston */ const WINSTON_HTTP_ACCESS_LOGGER: BindingKey<Interceptor>; }