@putkoff/abstract-logger 0.0.26 → 0.0.28

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.
@@ -1,13 +1,8 @@
1
- export declare const LOG_CONFIG: {
1
+ export declare function getLogConfig(): {
2
2
  condensed: boolean;
3
3
  expandOnDebug: boolean;
4
4
  showDetails: boolean;
5
5
  maxDetailsLength: number;
6
- /**
7
- * Function-level filtering
8
- * - empty allowlist = allow all
9
- * - blocklist always wins
10
- */
11
6
  showDetailslist: string[];
12
7
  functionAllowlist: string[];
13
8
  functionBlocklist: string[];
@@ -1,13 +1,8 @@
1
- export declare const LOG_CONFIG: {
1
+ export declare function getLogConfig(): {
2
2
  condensed: boolean;
3
3
  expandOnDebug: boolean;
4
4
  showDetails: boolean;
5
5
  maxDetailsLength: number;
6
- /**
7
- * Function-level filtering
8
- * - empty allowlist = allow all
9
- * - blocklist always wins
10
- */
11
6
  showDetailslist: string[];
12
7
  functionAllowlist: string[];
13
8
  functionBlocklist: string[];
@@ -18,16 +18,11 @@ declare function serializeDetails(value: any, condensed: boolean, maxLength: num
18
18
  declare function getLogString(options: LogStringOptions): string;
19
19
  declare function getLogString(messageOrOptions: string | LogStringOptions, logType?: LogType, details?: any, function_name?: any, file_location?: any, consumerLogger?: any): string;
20
20
 
21
- declare const LOG_CONFIG: {
21
+ declare function getLogConfig(): {
22
22
  condensed: boolean;
23
23
  expandOnDebug: boolean;
24
24
  showDetails: boolean;
25
25
  maxDetailsLength: number;
26
- /**
27
- * Function-level filtering
28
- * - empty allowlist = allow all
29
- * - blocklist always wins
30
- */
31
26
  showDetailslist: string[];
32
27
  functionAllowlist: string[];
33
28
  functionBlocklist: string[];
@@ -39,5 +34,5 @@ declare const LOG_CONFIG: {
39
34
  declare const IS_BROWSER: boolean;
40
35
  declare const IS_NODE: boolean;
41
36
 
42
- export { IS_BROWSER, IS_NODE, LOG_CONFIG, getLogString, logger, resolveValue, serializeDetails };
37
+ export { IS_BROWSER, IS_NODE, getLogConfig, getLogString, logger, resolveValue, serializeDetails };
43
38
  export type { LogStringOptions, LogType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putkoff/abstract-logger",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "description": "Lightweight TypeScript logger wrapper with auto-context tracing and Winston integration.",
6
6
  "main": "dist/cjs/index.js",