import { Binding, Context, Provider } from '@loopback/core'; import { RequestContext } from '@loopback/rest'; import { Logger } from '../util'; /** * A default stateless logger * * @remarks * * The logger implementation is stateless. We use SINGLETON scope so that only * one instance will be created to minimize the overhead. */ export declare class LoggerService implements Provider { private binding; constructor(resolutionCtx: Context, binding: Binding); value(): (message?: any, ...optionalParams: any[]) => void; } /** * A logger bound to a given request context * * @remarks * The binding scope is set to be `TRANSIENT` or `CONTEXT` so that a new * instance will be created for each request and the corresponding request * context can be injected into the request logger. */ export declare class RequestLoggerService implements Provider { private binding; private requestCtx; constructor(resolutionCtx: Context, binding: Binding, requestCtx: RequestContext); value(): (message?: any, ...optionalParams: any[]) => void; }