@putkoff/abstract-logger 0.0.19 → 0.0.20
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 +46 -19
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/config.d.ts +5 -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 +43 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/config.d.ts +5 -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 +5 -0
- package/dist/types/index.d.ts +14 -1
- package/dist/types/logger/logger.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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/dist/types/index.d.ts
CHANGED
|
@@ -14,8 +14,21 @@ 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
|
+
|
|
27
|
+
/** ---------------------------------------------------------
|
|
28
|
+
* Detect Environment
|
|
29
|
+
* --------------------------------------------------------- */
|
|
30
|
+
declare const IS_BROWSER: boolean;
|
|
31
|
+
declare const IS_NODE: boolean;
|
|
32
|
+
|
|
33
|
+
export { IS_BROWSER, IS_NODE, LOG_CONFIG, getLogString, logger, resolveValue, serializeDetails };
|
|
21
34
|
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