From b72cad9367fad8a4db15c95167294ea3abae884b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Fri, 6 May 2022 13:57:45 -0300 Subject: [PATCH 1/3] fix(provider): do not create camel alias in logger provider --- package.json | 2 +- src/Providers/LoggerProvider.js | 4 ++-- src/index.d.ts | 5 ----- src/index.js | 8 -------- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 6c5740e..fb7132c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/logger", - "version": "1.2.1", + "version": "1.2.2", "description": "Template for new projects.", "license": "MIT", "author": "João Lenon ", diff --git a/src/Providers/LoggerProvider.js b/src/Providers/LoggerProvider.js index 0eeee16..2b76458 100644 --- a/src/Providers/LoggerProvider.js +++ b/src/Providers/LoggerProvider.js @@ -14,9 +14,9 @@ export class LoggerProvider extends ServiceProvider { /** * Register any application services. * - * @return void + * @return {void} */ register() { - this.container.bind('Athenna/Core/Logger', Logger) + this.container.bind('Athenna/Core/Logger', Logger, false) } } diff --git a/src/index.d.ts b/src/index.d.ts index 83be21e..d3c0cad 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,10 +1,5 @@ import { Facade } from '@athenna/ioc' -/** - * Log facade. - * - * @type {Facade & import('../index').Logger} - */ export const Log: Facade & Logger export class ColorHelper { diff --git a/src/index.js b/src/index.js index ba78847..0acb8b6 100644 --- a/src/index.js +++ b/src/index.js @@ -27,13 +27,6 @@ export class Logger { */ #drivers = [] - /** - * The log channel selected with driver and formatter configurations. - * - * @type {string[]} - */ - #channelNames = [] - /** * Creates a new instance of Logger. * @@ -162,7 +155,6 @@ export class Logger { */ channel(...channels) { this.#drivers = [] - this.#channelNames = channels channels.forEach(channel => { this.#drivers.push(DriverFactory.fabricate(channel, this.#runtimeConfig)) From 62db7ecfe72a31375726c679b03a7ecc58715bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Fri, 6 May 2022 14:02:12 -0300 Subject: [PATCH 2/3] chore(npm): update keywords and readme --- README.md | 4 ++-- package.json | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 11e89e6..4d0f5bc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Template 📔 +# Logger 🔍 -> Template for new projects +> The Athenna logging solution. Log in stdout, files and buckets. [![GitHub followers](https://img.shields.io/github/followers/athennaio.svg?style=social&label=Follow&maxAge=2592000)](https://github.com/athennaio?tab=followers) [![GitHub stars](https://img.shields.io/github/stars/AthennaIO/Logger.svg?style=social&label=Star&maxAge=2592000)](https://github.com/AthennaIO/Logger/stargazers/) diff --git a/package.json b/package.json index fb7132c..149d5e7 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,25 @@ { "name": "@athenna/logger", "version": "1.2.2", - "description": "Template for new projects.", + "description": "The Athenna logging solution. Log in stdout, files and buckets.", "license": "MIT", "author": "João Lenon ", "bugs": "https://github.com/AthennaIO/Logger/issues", "repository": "https://github.com/AthennaIO/Logger.git", "homepage": "https://github.com/AthennaIO/Logger#readme", - "keywords": [], + "keywords": [ + "slack", + "discord", + "telegram", + "console", + "debug", + "pino", + "buckets", + "logger", + "drivers", + "formatters", + "athenna" + ], "scripts": { "lint:fix": "eslint \"{src,tests}/**/*.js\" --fix", "test": "npm run --silent lint:fix && node ./tests/index.js", From d4490242290263e265842a62c892461e4ba66748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Fri, 6 May 2022 14:03:05 -0300 Subject: [PATCH 3/3] chore(npm): update keywords and readme --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 149d5e7..ed0eb97 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "logger", "drivers", "formatters", - "athenna" + "athenna", + "esm" ], "scripts": { "lint:fix": "eslint \"{src,tests}/**/*.js\" --fix",