@putkoff/abstract-logger 0.0.19 → 0.0.21
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/index.js +66 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/config.d.ts +12 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/logger/logger.d.ts +1 -0
- package/dist/esm/index.js +63 -22
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/config.d.ts +12 -0
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/esm/types/logger/logger.d.ts +1 -0
- package/dist/types/config.d.ts +12 -0
- package/dist/types/index.d.ts +21 -1
- package/dist/types/logger/logger.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const LOG_CONFIG: {
|
|
2
|
+
condensed: boolean;
|
|
3
|
+
expandOnDebug: boolean;
|
|
4
|
+
maxDetailsLength: number;
|
|
5
|
+
/**
|
|
6
|
+
* Function-level filtering
|
|
7
|
+
* - empty allowlist = allow all
|
|
8
|
+
* - blocklist always wins
|
|
9
|
+
*/
|
|
10
|
+
functionAllowlist: string[];
|
|
11
|
+
functionBlocklist: string[];
|
|
12
|
+
};
|
|
@@ -14,5 +14,6 @@ export interface LogStringOptions {
|
|
|
14
14
|
file_location?: any;
|
|
15
15
|
consumerLogger?: any;
|
|
16
16
|
}
|
|
17
|
+
export declare function serializeDetails(value: any, condensed: boolean, maxLength: number): string;
|
|
17
18
|
export declare function getLogString(options: LogStringOptions): string;
|
|
18
19
|
export declare function getLogString(messageOrOptions: string | LogStringOptions, logType?: LogType, details?: any, function_name?: any, file_location?: any, consumerLogger?: any): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const LOG_CONFIG: {
|
|
2
|
+
condensed: boolean;
|
|
3
|
+
expandOnDebug: boolean;
|
|
4
|
+
maxDetailsLength: number;
|
|
5
|
+
/**
|
|
6
|
+
* Function-level filtering
|
|
7
|
+
* - empty allowlist = allow all
|
|
8
|
+
* - blocklist always wins
|
|
9
|
+
*/
|
|
10
|
+
functionAllowlist: string[];
|
|
11
|
+
functionBlocklist: string[];
|
|
12
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -14,8 +14,28 @@ interface LogStringOptions {
|
|
|
14
14
|
file_location?: any;
|
|
15
15
|
consumerLogger?: any;
|
|
16
16
|
}
|
|
17
|
+
declare function serializeDetails(value: any, condensed: boolean, maxLength: number): string;
|
|
17
18
|
declare function getLogString(options: LogStringOptions): string;
|
|
18
19
|
declare function getLogString(messageOrOptions: string | LogStringOptions, logType?: LogType, details?: any, function_name?: any, file_location?: any, consumerLogger?: any): string;
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
declare const LOG_CONFIG: {
|
|
22
|
+
condensed: boolean;
|
|
23
|
+
expandOnDebug: boolean;
|
|
24
|
+
maxDetailsLength: number;
|
|
25
|
+
/**
|
|
26
|
+
* Function-level filtering
|
|
27
|
+
* - empty allowlist = allow all
|
|
28
|
+
* - blocklist always wins
|
|
29
|
+
*/
|
|
30
|
+
functionAllowlist: string[];
|
|
31
|
+
functionBlocklist: string[];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** ---------------------------------------------------------
|
|
35
|
+
* Detect Environment
|
|
36
|
+
* --------------------------------------------------------- */
|
|
37
|
+
declare const IS_BROWSER: boolean;
|
|
38
|
+
declare const IS_NODE: boolean;
|
|
39
|
+
|
|
40
|
+
export { IS_BROWSER, IS_NODE, LOG_CONFIG, getLogString, logger, resolveValue, serializeDetails };
|
|
21
41
|
export type { LogStringOptions, LogType };
|
|
@@ -14,5 +14,6 @@ export interface LogStringOptions {
|
|
|
14
14
|
file_location?: any;
|
|
15
15
|
consumerLogger?: any;
|
|
16
16
|
}
|
|
17
|
+
export declare function serializeDetails(value: any, condensed: boolean, maxLength: number): string;
|
|
17
18
|
export declare function getLogString(options: LogStringOptions): string;
|
|
18
19
|
export declare function getLogString(messageOrOptions: string | LogStringOptions, logType?: LogType, details?: any, function_name?: any, file_location?: any, consumerLogger?: any): string;
|
package/package.json
CHANGED