moleculer-api
Version:
A dynamic API Gateway for MoleculerJS which updates REST endpoints and aggregated GraphQL schema, access control policy for each action calls from metadata of remote services schema without restart or deployment.
20 lines (19 loc) • 790 B
TypeScript
import * as Winston from "winston";
import { Logger, LoggerProps } from "./logger";
export declare type WinstonLoggerOptions = Winston.LoggerOptions;
export declare class WinstonLogger extends Logger {
protected readonly props: LoggerProps;
static readonly key = "winston";
private static readonly defaultOptions;
private static printObject;
private readonly logger;
protected readonly opts: Winston.LoggerOptions;
constructor(props: LoggerProps, opts?: WinstonLoggerOptions, reusableLogger?: Winston.Logger);
get options(): WinstonLoggerOptions;
getChild(label: string, resetLabelPrefix?: true): Logger;
private log;
debug(...args: any[]): void;
error(...args: any[]): void;
info(...args: any[]): void;
warn(...args: any[]): void;
}