NodeLogging/out/index.d.ts

32 lines
1.0 KiB
TypeScript
Raw Normal View History

/// <reference types="node" />
import { EventEmitter } from "events";
2017-08-23 14:45:03 +00:00
export declare class Logging {
private static logFileLocation;
2018-02-18 15:00:16 +00:00
static stdout: boolean;
2017-08-23 14:45:03 +00:00
private static fileStream;
private static errorStream;
2018-02-18 15:00:16 +00:00
private static fileSize;
private static errorSize;
2017-08-23 14:45:03 +00:00
private static writing;
private static queue;
static events: EventEmitter;
2017-08-23 14:45:03 +00:00
static config(logfolder: string, stdout: boolean): void;
static debug(...message: any[]): void;
static log(...message: any[]): void;
static warning(...message: any[]): void;
2017-09-16 17:22:02 +00:00
static logWithCustomColors(type: LoggingTypes, colors: string, ...message: any[]): void;
2017-08-23 14:45:03 +00:00
static error(error: Error | string): void;
static errorMessage(...message: string[]): void;
2017-09-16 17:22:02 +00:00
private static message(type, message, customColors?);
2017-08-23 14:45:03 +00:00
private static writeMessageToFile(message, error?);
private static checkQueue();
private static initializeFile();
}
export default Logging;
2017-08-23 14:45:03 +00:00
export declare enum LoggingTypes {
Log = 0,
Warning = 1,
Error = 2,
Debug = 3,
}