UNPKG

@deepkush97/logger-ts

Version:

A simple logger implementation with typescript containing two transport method for logging.

10 lines (9 loc) 320 B
/// <reference types="node" /> import { WriteStream } from "fs"; import { LogLevels } from "../utils/LogLevels"; import { Transport } from "./Transport"; export declare class FileTransport implements Transport { _fileStream: WriteStream; constructor(); log: (level: LogLevels, data: any) => void; }