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 6c5740e..ed0eb97 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,26 @@ { "name": "@athenna/logger", - "version": "1.2.1", - "description": "Template for new projects.", + "version": "1.2.2", + "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", + "esm" + ], "scripts": { "lint:fix": "eslint \"{src,tests}/**/*.js\" --fix", "test": "npm run --silent lint:fix && node ./tests/index.js", 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))