@athenna/logger 1.2.1 → 1.2.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.
- package/README.md +2 -2
- package/package.json +17 -4
- package/src/Providers/LoggerProvider.js +2 -2
- package/src/index.d.ts +0 -5
- package/src/index.js +0 -8
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Logger 🔍
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> The Athenna logging solution. Log in stdout, files and buckets.
|
|
4
4
|
|
|
5
5
|
[](https://github.com/athennaio?tab=followers)
|
|
6
6
|
[](https://github.com/AthennaIO/Logger/stargazers/)
|
package/package.json
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athenna/logger",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.2.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>",
|
|
7
7
|
"bugs": "https://github.com/AthennaIO/Logger/issues",
|
|
8
8
|
"repository": "https://github.com/AthennaIO/Logger.git",
|
|
9
9
|
"homepage": "https://github.com/AthennaIO/Logger#readme",
|
|
10
|
-
"keywords": [
|
|
10
|
+
"keywords": [
|
|
11
|
+
"slack",
|
|
12
|
+
"discord",
|
|
13
|
+
"telegram",
|
|
14
|
+
"console",
|
|
15
|
+
"debug",
|
|
16
|
+
"pino",
|
|
17
|
+
"buckets",
|
|
18
|
+
"logger",
|
|
19
|
+
"drivers",
|
|
20
|
+
"formatters",
|
|
21
|
+
"athenna",
|
|
22
|
+
"esm"
|
|
23
|
+
],
|
|
11
24
|
"scripts": {
|
|
12
25
|
"lint:fix": "eslint \"{src,tests}/**/*.js\" --fix",
|
|
13
26
|
"test": "npm run --silent lint:fix && node ./tests/index.js",
|
|
@@ -34,7 +47,7 @@
|
|
|
34
47
|
"./providers/LoggerProvider": "./src/Providers/LoggerProvider.js"
|
|
35
48
|
},
|
|
36
49
|
"dependencies": {
|
|
37
|
-
"@athenna/ioc": "1.1.
|
|
50
|
+
"@athenna/ioc": "1.1.9",
|
|
38
51
|
"@secjs/utils": "1.9.3",
|
|
39
52
|
"axios": "0.26.1",
|
|
40
53
|
"chalk": "5.0.1",
|
|
@@ -14,9 +14,9 @@ export class LoggerProvider extends ServiceProvider {
|
|
|
14
14
|
/**
|
|
15
15
|
* Register any application services.
|
|
16
16
|
*
|
|
17
|
-
* @return void
|
|
17
|
+
* @return {void}
|
|
18
18
|
*/
|
|
19
19
|
register() {
|
|
20
|
-
this.container.bind('Athenna/Core/Logger', Logger)
|
|
20
|
+
this.container.bind('Athenna/Core/Logger', Logger, false)
|
|
21
21
|
}
|
|
22
22
|
}
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -27,13 +27,6 @@ export class Logger {
|
|
|
27
27
|
*/
|
|
28
28
|
#drivers = []
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* The log channel selected with driver and formatter configurations.
|
|
32
|
-
*
|
|
33
|
-
* @type {string[]}
|
|
34
|
-
*/
|
|
35
|
-
#channelNames = []
|
|
36
|
-
|
|
37
30
|
/**
|
|
38
31
|
* Creates a new instance of Logger.
|
|
39
32
|
*
|
|
@@ -162,7 +155,6 @@ export class Logger {
|
|
|
162
155
|
*/
|
|
163
156
|
channel(...channels) {
|
|
164
157
|
this.#drivers = []
|
|
165
|
-
this.#channelNames = channels
|
|
166
158
|
|
|
167
159
|
channels.forEach(channel => {
|
|
168
160
|
this.#drivers.push(DriverFactory.fabricate(channel, this.#runtimeConfig))
|