@athenna/logger 3.1.7 → 3.2.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athenna/logger",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "The Athenna logging solution. Log in stdout, files and buckets.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "João Lenon <lenon@athenna.io>",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"telegraf": "^4.11.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@athenna/common": "^3.
|
|
56
|
-
"@athenna/config": "^3.
|
|
57
|
-
"@athenna/ioc": "^3.
|
|
58
|
-
"@athenna/test": "^3.
|
|
55
|
+
"@athenna/common": "^3.5.0",
|
|
56
|
+
"@athenna/config": "^3.3.0",
|
|
57
|
+
"@athenna/ioc": "^3.2.0",
|
|
58
|
+
"@athenna/test": "^3.3.0",
|
|
59
59
|
"@japa/assert": "^1.3.6",
|
|
60
60
|
"@japa/run-failed-tests": "^1.1.0",
|
|
61
61
|
"@japa/runner": "^2.2.2",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"@types/ms": "^0.7.31",
|
|
70
70
|
"@types/pluralize": "^0.0.29",
|
|
71
71
|
"@types/uuid": "^9.0.0",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
73
|
-
"@typescript-eslint/parser": "^5.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
73
|
+
"@typescript-eslint/parser": "^5.56.0",
|
|
74
74
|
"c8": "^7.12.0",
|
|
75
75
|
"cls-rtracer": "^2.6.2",
|
|
76
76
|
"commitizen": "^4.2.6",
|
|
77
77
|
"cross-env": "^7.0.3",
|
|
78
78
|
"cz-conventional-changelog": "^3.3.0",
|
|
79
|
-
"eslint": "^8.
|
|
80
|
-
"eslint-config-prettier": "^8.
|
|
79
|
+
"eslint": "^8.36.0",
|
|
80
|
+
"eslint-config-prettier": "^8.8.0",
|
|
81
81
|
"eslint-config-standard": "^17.0.0",
|
|
82
82
|
"eslint-plugin-import": "^2.27.5",
|
|
83
83
|
"eslint-plugin-n": "^15.6.1",
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
"husky": "^3.1.0",
|
|
87
87
|
"lint-staged": "^12.5.0",
|
|
88
88
|
"minimist": "^1.2.7",
|
|
89
|
-
"prettier": "^2.8.
|
|
89
|
+
"prettier": "^2.8.7",
|
|
90
90
|
"reflect-metadata": "^0.1.13",
|
|
91
91
|
"sinon": "^15.0.2",
|
|
92
92
|
"ts-node": "^10.9.1",
|
|
93
|
-
"typescript": "^
|
|
93
|
+
"typescript": "^5.0.2"
|
|
94
94
|
},
|
|
95
95
|
"c8": {
|
|
96
96
|
"all": true,
|
|
@@ -19,7 +19,7 @@ import { TelegramDriver } from '#src/Drivers/TelegramDriver';
|
|
|
19
19
|
import { DriverExistException } from '#src/Exceptions/DriverExistException';
|
|
20
20
|
import { NotFoundDriverException } from '#src/Exceptions/NotFoundDriverException';
|
|
21
21
|
import { NotImplementedConfigException } from '#src/Exceptions/NotImplementedConfigException';
|
|
22
|
-
|
|
22
|
+
class DriverFactory {
|
|
23
23
|
/**
|
|
24
24
|
* Drivers of DriverFactory.
|
|
25
25
|
*/
|
|
@@ -91,3 +91,4 @@ export class DriverFactory {
|
|
|
91
91
|
return channelConfig;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
+
export { DriverFactory };
|
|
@@ -14,7 +14,7 @@ import { MessageFormatter } from '#src/Formatters/MessageFormatter';
|
|
|
14
14
|
import { RequestFormatter } from '#src/Formatters/RequestFormatter';
|
|
15
15
|
import { FormatterExistException } from '#src/Exceptions/FormatterExistException';
|
|
16
16
|
import { NotFoundFormatterException } from '#src/Exceptions/NotFoundFormatterException';
|
|
17
|
-
|
|
17
|
+
class FormatterFactory {
|
|
18
18
|
/**
|
|
19
19
|
* Formatters of FormatterFactory.
|
|
20
20
|
*/
|
|
@@ -55,3 +55,4 @@ export class FormatterFactory {
|
|
|
55
55
|
this.formatters.set(name, { Formatter: formatter });
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
export { FormatterFactory };
|