diff --git a/meta.json b/meta.json index 96b1921..0fdf034 100644 --- a/meta.json +++ b/meta.json @@ -1,6 +1,6 @@ { "name": "logging", - "version": "3.0.3", + "version": "3.0.4", "description": "", "author": "Fabian Stamm ", "contributors": [], diff --git a/package.json b/package.json index 519d15e..1e306b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/logging", - "version": "3.0.3", + "version": "3.0.4", "description": "", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/base.ts b/src/base.ts index d64baba..a730df7 100644 --- a/src/base.ts +++ b/src/base.ts @@ -6,28 +6,13 @@ import { Format, FormatConfig, Formatted, + ILoggingInterface, LoggingTypes, Message, } from "./types.js"; const browser = typeof window !== "undefined"; -export interface ILoggingTimer { - end: () => number; -} - -export interface ILoggingInterface { - debug(...message: any[]): void; - log(...message: any[]): void; - warn(...message: any[]): void; - error(...message: any[]): void; - - time(name?: string): ILoggingTimer; - timeEnd(id: string): number; - - getChild(name: string): ILoggingInterface; -} - export interface ILoggingOptions { /** * Name will be prefixed on Console output and added to logfiles, if not specified here diff --git a/src/index.ts b/src/index.ts index a3f7178..0334c0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,6 +14,8 @@ export { TerminalFormats, Formatted, IFormatted, + ILoggingInterface, + ILoggingTimer, } from "./types.js"; const Logging = new LoggingBase(); diff --git a/src/types.ts b/src/types.ts index 8a9ebf2..279b2c7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -234,3 +234,19 @@ export interface Adapter { */ close?(): void; } + +export interface ILoggingTimer { + end: () => number; +} + +export interface ILoggingInterface { + debug(...message: any[]): void; + log(...message: any[]): void; + warn(...message: any[]): void; + error(...message: any[]): void; + + time(name?: string): ILoggingTimer; + timeEnd(id: string): number; + + getChild(name: string): ILoggingInterface; +}