typescript-logging-category-style
Advanced tools
Comparing version
@@ -20,3 +20,3 @@ import { LogConfig } from "typescript-logging"; | ||
*/ | ||
export declare type CategoryConfigOptional = Partial<CategoryConfig>; | ||
export type CategoryConfigOptional = Partial<CategoryConfig>; | ||
//# sourceMappingURL=CategoryConfig.d.ts.map |
@@ -39,3 +39,3 @@ /** | ||
} | ||
export declare type CategoryControlProviderLogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal"; | ||
export type CategoryControlProviderLogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal"; | ||
//# sourceMappingURL=CategoryControlProvider.d.ts.map |
@@ -6,3 +6,3 @@ import { RuntimeSettings } from "typescript-logging"; | ||
*/ | ||
export declare type CategoryRuntimeSettings = Omit<RuntimeSettings, "channel"> & { | ||
export type CategoryRuntimeSettings = Omit<RuntimeSettings, "channel"> & { | ||
/** Set to true to disable recursion which is the default if not set */ | ||
@@ -9,0 +9,0 @@ disableRecursion?: boolean; |
@@ -181,5 +181,5 @@ /** | ||
__proto__: null, | ||
INTERNAL_LOGGING_SETTINGS: INTERNAL_LOGGING_SETTINGS, | ||
get InternalLogLevel () { return InternalLogLevel; }, | ||
getInternalLogger: getInternalLogger, | ||
INTERNAL_LOGGING_SETTINGS: INTERNAL_LOGGING_SETTINGS | ||
getInternalLogger: getInternalLogger | ||
}); | ||
@@ -192,3 +192,3 @@ | ||
(function (LogLevel) { | ||
// Do not reverse/change order, a test relies on it. | ||
// Do not change values/order. Logging a message relies on this. | ||
LogLevel[LogLevel["Trace"] = 0] = "Trace"; | ||
@@ -200,2 +200,3 @@ LogLevel[LogLevel["Debug"] = 1] = "Debug"; | ||
LogLevel[LogLevel["Fatal"] = 5] = "Fatal"; | ||
LogLevel[LogLevel["Off"] = 6] = "Off"; | ||
})(LogLevel || (LogLevel = {})); | ||
@@ -222,2 +223,4 @@ /* tslint:disable:no-namespace */ | ||
return LogLevel.Fatal; | ||
case "off": | ||
return LogLevel.Off; | ||
default: | ||
@@ -598,5 +601,5 @@ return undefined; | ||
EnhancedMap: EnhancedMap, | ||
padStart: padStart, | ||
maxLengthStringValueInArray: maxLengthStringValueInArray, | ||
padEnd: padEnd, | ||
maxLengthStringValueInArray: maxLengthStringValueInArray | ||
padStart: padStart | ||
}); | ||
@@ -603,0 +606,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
/** | ||
@@ -185,5 +183,5 @@ * Extends Map and adds a few convenient functions. | ||
__proto__: null, | ||
INTERNAL_LOGGING_SETTINGS: INTERNAL_LOGGING_SETTINGS, | ||
get InternalLogLevel () { return InternalLogLevel; }, | ||
getInternalLogger: getInternalLogger, | ||
INTERNAL_LOGGING_SETTINGS: INTERNAL_LOGGING_SETTINGS | ||
getInternalLogger: getInternalLogger | ||
}); | ||
@@ -196,3 +194,3 @@ | ||
(function (LogLevel) { | ||
// Do not reverse/change order, a test relies on it. | ||
// Do not change values/order. Logging a message relies on this. | ||
LogLevel[LogLevel["Trace"] = 0] = "Trace"; | ||
@@ -204,2 +202,3 @@ LogLevel[LogLevel["Debug"] = 1] = "Debug"; | ||
LogLevel[LogLevel["Fatal"] = 5] = "Fatal"; | ||
LogLevel[LogLevel["Off"] = 6] = "Off"; | ||
})(LogLevel || (LogLevel = {})); | ||
@@ -226,2 +225,4 @@ /* tslint:disable:no-namespace */ | ||
return LogLevel.Fatal; | ||
case "off": | ||
return LogLevel.Off; | ||
default: | ||
@@ -602,5 +603,5 @@ return undefined; | ||
EnhancedMap: EnhancedMap, | ||
padStart: padStart, | ||
maxLengthStringValueInArray: maxLengthStringValueInArray, | ||
padEnd: padEnd, | ||
maxLengthStringValueInArray: maxLengthStringValueInArray | ||
padStart: padStart | ||
}); | ||
@@ -607,0 +608,0 @@ |
{ | ||
"name": "typescript-logging-category-style", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "TypeScript Logging category style written in and to be used by TypeScript.", | ||
@@ -47,18 +47,19 @@ "main": "dist/bundle/typescript-logging-category.js", | ||
"peerDependencies": { | ||
"typescript-logging": "~2.0.2" | ||
"typescript-logging": "~2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "21.0.1", | ||
"@rollup/plugin-node-resolve": "13.0.6", | ||
"@types/jest": "27.0.2", | ||
"jest": "27.3.1", | ||
"rollup": "2.58.3", | ||
"rollup-plugin-typescript2": "0.30.0", | ||
"shx": "0.3.3", | ||
"ts-jest": "27.0.7", | ||
"ts-loader": "9.2.6", | ||
"ts-node": "10.4.0", | ||
"@rollup/plugin-commonjs": "24.0.1", | ||
"@rollup/plugin-node-resolve": "15.0.1", | ||
"@types/jest": "29.4.0", | ||
"jest": "29.5.0", | ||
"jest-environment-jsdom": "29.5.0", | ||
"rollup": "3.18.0", | ||
"rollup-plugin-typescript2": "0.34.1", | ||
"shx": "0.3.4", | ||
"ts-jest": "29.0.5", | ||
"ts-loader": "9.4.2", | ||
"ts-node": "10.9.1", | ||
"tslint": "6.1.3", | ||
"typescript": "4.4.4" | ||
"typescript": "4.9.5" | ||
} | ||
} |
@@ -152,6 +152,9 @@ # TypeScript Logging category style | ||
- Fatal | ||
- Off | ||
Each level has a matching function on the Logger, for example `trace` for Trace and `debug` for Debug. The signatures of | ||
the function are the same for all of them. This shows the signatures for debug. | ||
Each level except 'Off' has a matching function on the Logger, for example `trace` for Trace and `debug` for Debug. The | ||
signatures of the function are the same for all of them. Note that the level 'Off' turns logging off completely. | ||
This shows the signatures for debug. | ||
```typescript | ||
@@ -158,0 +161,0 @@ interface CoreLogger { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
365299
1.74%2689
0.19%561
0.54%13
8.33%