UNPKG

moleculer

Version:

Fast & powerful microservices framework for Node.JS

23 lines (18 loc) 626 B
import LoggerFactory = require("../logger-factory"); import type { LogHandler } from "./base"; import FormattedLogger = require("./formatted"); import type { FormattedLoggerOptions } from "./formatted"; declare namespace FileLogger { export interface FileLoggerOptions extends FormattedLoggerOptions { folder?: string; filename?: string; eol?: string; interval?: number; } } declare class FileLogger extends FormattedLogger<FileLogger.FileLoggerOptions> { stop(): void; init(loggerFactory: LoggerFactory): void; getLogHandler(bindings: LoggerFactory.LoggerBindings): LogHandler | null; } export = FileLogger;