@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.
@@ -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
+ };
@@ -1 +1,3 @@
1
1
  export * from './logger';
2
+ export * from './config';
3
+ export * from './detect';
@@ -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
+ };
@@ -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
- export { getLogString, logger, resolveValue };
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putkoff/abstract-logger",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
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",