@js-soft/simple-logger 1.0.2 → 1.0.4
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.
|
@@ -5,6 +5,10 @@ const typescript_logging_1 = require("typescript-logging");
|
|
|
5
5
|
const typescript_logging_log4ts_style_1 = require("typescript-logging-log4ts-style");
|
|
6
6
|
const SimpleLogger_1 = require("./SimpleLogger");
|
|
7
7
|
class SimpleLoggerFactory {
|
|
8
|
+
getLogger(name) {
|
|
9
|
+
const logger = this.provider.getLogger(name instanceof Function ? name.name : name);
|
|
10
|
+
return new SimpleLogger_1.SimpleLogger(logger);
|
|
11
|
+
}
|
|
8
12
|
constructor(logLevel = typescript_logging_1.LogLevel.Warn, factoryName = Math.random().toString(36).substring(7)) {
|
|
9
13
|
this.provider = typescript_logging_log4ts_style_1.Log4TSProvider.createProvider(factoryName, {
|
|
10
14
|
groups: [
|
|
@@ -15,10 +19,6 @@ class SimpleLoggerFactory {
|
|
|
15
19
|
]
|
|
16
20
|
});
|
|
17
21
|
}
|
|
18
|
-
getLogger(name) {
|
|
19
|
-
const logger = this.provider.getLogger(name instanceof Function ? name.name : name);
|
|
20
|
-
return new SimpleLogger_1.SimpleLogger(logger);
|
|
21
|
-
}
|
|
22
22
|
}
|
|
23
23
|
exports.SimpleLoggerFactory = SimpleLoggerFactory;
|
|
24
24
|
//# sourceMappingURL=SimpleLoggerFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleLoggerFactory.js","sourceRoot":"","sources":["../src/SimpleLoggerFactory.ts"],"names":[],"mappings":";;;AACA,2DAA8C;AAC9C,qFAAiE;AACjE,iDAA8C;AAE9C,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"SimpleLoggerFactory.js","sourceRoot":"","sources":["../src/SimpleLoggerFactory.ts"],"names":[],"mappings":";;;AACA,2DAA8C;AAC9C,qFAAiE;AACjE,iDAA8C;AAE9C,MAAa,mBAAmB;IAGrB,SAAS,CAAC,IAAuB;QACpC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,YAAY,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACpF,OAAO,IAAI,2BAAY,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAED,YACI,WAAqB,6BAAQ,CAAC,IAAI,EAClC,cAAsB,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QAE7D,IAAI,CAAC,QAAQ,GAAG,gDAAc,CAAC,cAAc,CAAC,WAAW,EAAE;YACvD,MAAM,EAAE;gBACJ;oBACI,UAAU,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC;oBAC5B,KAAK,EAAE,QAAQ;iBAClB;aACJ;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AArBD,kDAqBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-soft/simple-logger",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Simple implementation of the '@js-soft/logging-abstractions' library",
|
|
5
5
|
"homepage": "https://github.com/js-soft/ts-logging#readme",
|
|
6
6
|
"repository": {
|
|
@@ -19,15 +19,16 @@
|
|
|
19
19
|
"license-check": "license-check"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@js-soft/logging-abstractions": "1.0.
|
|
22
|
+
"@js-soft/logging-abstractions": "1.0.1",
|
|
23
23
|
"json-stringify-safe": "^5.0.1",
|
|
24
|
-
"typescript-logging": "^2.0
|
|
25
|
-
"typescript-logging-log4ts-style": "^2.0
|
|
24
|
+
"typescript-logging": "^2.1.0",
|
|
25
|
+
"typescript-logging-log4ts-style": "^2.1.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/json-stringify-safe": "^5.0.
|
|
28
|
+
"@types/json-stringify-safe": "^5.0.3"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
|
-
"access": "public"
|
|
31
|
+
"access": "public",
|
|
32
|
+
"provenance": true
|
|
32
33
|
}
|
|
33
34
|
}
|