@putkoff/abstract-logger 0.0.63 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/types/logger/main/index.d.ts +1 -0
- package/dist/cjs/types/logger/main/logger.d.ts +12 -0
- package/dist/esm/types/logger/main/index.d.ts +1 -0
- package/dist/esm/types/logger/main/logger.d.ts +12 -0
- package/dist/types/logger/main/index.d.ts +1 -0
- package/dist/types/logger/main/logger.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
2
|
+
export interface LogOptions {
|
|
3
|
+
scope?: string;
|
|
4
|
+
timestamp?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function log(level: LogLevel, message: string, opts?: LogOptions): void;
|
|
7
|
+
export declare const logger: {
|
|
8
|
+
debug(msg: string, opts?: LogOptions): void;
|
|
9
|
+
info(msg: string, opts?: LogOptions): void;
|
|
10
|
+
warn(msg: string, opts?: LogOptions): void;
|
|
11
|
+
error(msg: string, opts?: LogOptions): void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
2
|
+
export interface LogOptions {
|
|
3
|
+
scope?: string;
|
|
4
|
+
timestamp?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function log(level: LogLevel, message: string, opts?: LogOptions): void;
|
|
7
|
+
export declare const logger: {
|
|
8
|
+
debug(msg: string, opts?: LogOptions): void;
|
|
9
|
+
info(msg: string, opts?: LogOptions): void;
|
|
10
|
+
warn(msg: string, opts?: LogOptions): void;
|
|
11
|
+
error(msg: string, opts?: LogOptions): void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
2
|
+
export interface LogOptions {
|
|
3
|
+
scope?: string;
|
|
4
|
+
timestamp?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function log(level: LogLevel, message: string, opts?: LogOptions): void;
|
|
7
|
+
export declare const logger: {
|
|
8
|
+
debug(msg: string, opts?: LogOptions): void;
|
|
9
|
+
info(msg: string, opts?: LogOptions): void;
|
|
10
|
+
warn(msg: string, opts?: LogOptions): void;
|
|
11
|
+
error(msg: string, opts?: LogOptions): void;
|
|
12
|
+
};
|
package/package.json
CHANGED