ag-common 0.0.209 → 0.0.210
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,6 +1,6 @@
|
|
|
1
1
|
export declare type TLogType = 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL';
|
|
2
2
|
export declare const GetLogLevel: (l: TLogType) => number;
|
|
3
|
-
export declare const SetLogLevel: (l:
|
|
3
|
+
export declare const SetLogLevel: (l: TLogType) => void;
|
|
4
4
|
export declare const debug: (...args: unknown[]) => void;
|
|
5
5
|
export declare const info: (...args: unknown[]) => void;
|
|
6
6
|
export declare const warn: (...args: unknown[]) => void;
|
|
@@ -14,7 +14,7 @@ const SetLogLevel = (l) => {
|
|
|
14
14
|
userLogLevel = lu;
|
|
15
15
|
};
|
|
16
16
|
exports.SetLogLevel = SetLogLevel;
|
|
17
|
-
(0, exports.SetLogLevel)(process.env.LOG_LEVEL
|
|
17
|
+
(0, exports.SetLogLevel)(process.env.LOG_LEVEL);
|
|
18
18
|
function logprocess(type, args) {
|
|
19
19
|
const min = (0, exports.GetLogLevel)(userLogLevel);
|
|
20
20
|
const typesLogLevel = (0, exports.GetLogLevel)(type);
|