@athenna/logger 1.2.0 → 1.2.3

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 CHANGED
@@ -1,6 +1,6 @@
1
- # Template 📔
1
+ # Logger 🔍
2
2
 
3
- > Template for new projects
3
+ > The Athenna logging solution. Log in stdout, files and buckets.
4
4
 
5
5
  [![GitHub followers](https://img.shields.io/github/followers/athennaio.svg?style=social&label=Follow&maxAge=2592000)](https://github.com/athennaio?tab=followers)
6
6
  [![GitHub stars](https://img.shields.io/github/stars/AthennaIO/Logger.svg?style=social&label=Star&maxAge=2592000)](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.0",
4
- "description": "Template for new projects.",
3
+ "version": "1.2.3",
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,9 +47,8 @@
34
47
  "./providers/LoggerProvider": "./src/Providers/LoggerProvider.js"
35
48
  },
36
49
  "dependencies": {
37
- "@athenna/ioc": "1.1.7",
50
+ "@athenna/ioc": "1.1.8",
38
51
  "@secjs/utils": "1.9.3",
39
- "awilix": "7.0.3",
40
52
  "axios": "0.26.1",
41
53
  "chalk": "5.0.1",
42
54
  "debug": "4.3.4",
@@ -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
@@ -1,10 +1,5 @@
1
1
  import { Facade } from '@athenna/ioc'
2
2
 
3
- /**
4
- * Log facade.
5
- *
6
- * @type {Facade & import('../index').Logger}
7
- */
8
3
  export const Log: Facade & Logger
9
4
 
10
5
  export class ColorHelper {
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))