diff --git a/index.d.ts b/index.d.ts index d3006ccd39c1d9aac27fe91be3c9be9f130a60e2..5007519e646365c229573ff830498e80a76938a2 100755 --- a/index.d.ts +++ b/index.d.ts @@ -1,9 +1,7 @@ export as namespace Log; -export = Log; - /*~ Write your module's methods and properties in this class */ -declare class Log { +export class Log { constructor(config?: any); info(...message: any): string; notice(...message: any): string; @@ -12,3 +10,25 @@ declare class Log { log(...message: any): string; error(...message: any): string; } +export interface LogConfig { + name?: string; + hostname?: string; + file?: string; + path?: string; + loglevel?: LogLevel; + delimiter?: string; + format?: string; + loki?: LogConfigLoki; +} +export interface LogConfigLoki { + active?: boolean; + server?: string; +} +export enum LogLevel { + DEBUG = 5, + INFO = 4, + NOTICE = 3, + WARN = 2, + ERROR = 1, + FATAL = 0 +} diff --git a/package.json b/package.json index b842d560b63a6bbf783273f20fbc0d8c1e65f391..0dc915a6269b546135cd7f698bf4bd0cce916c7d 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@libs/log", - "version": "3.1.3", + "version": "3.1.4", "description": "A simple Logger with Options!", "main": "index.js", "scripts": {