{"id":20963507,"url":"https://github.com/ialopezg/custom-logger-service","last_synced_at":"2026-04-21T18:33:15.314Z","repository":{"id":39627316,"uuid":"259821111","full_name":"ialopezg/custom-logger-service","owner":"ialopezg","description":"Custom Logger for Apps and API's","archived":false,"fork":false,"pushed_at":"2023-01-08T19:49:16.000Z","size":385,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T01:31:55.261Z","etag":null,"topics":["console","debug","error","info","log","logger","logging","warn"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ialopezg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ialopezg","patreon":"ialopezg","open_collective":"ialopezg","ko_fi":"ialopezg","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/isidrolopezg"]}},"created_at":"2020-04-29T04:09:08.000Z","updated_at":"2022-05-30T14:44:29.000Z","dependencies_parsed_at":"2023-02-08T07:16:05.786Z","dependency_job_id":null,"html_url":"https://github.com/ialopezg/custom-logger-service","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ialopezg%2Fcustom-logger-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ialopezg%2Fcustom-logger-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ialopezg%2Fcustom-logger-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ialopezg%2Fcustom-logger-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ialopezg","download_url":"https://codeload.github.com/ialopezg/custom-logger-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243360156,"owners_count":20278338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["console","debug","error","info","log","logger","logging","warn"],"created_at":"2024-11-19T02:46:06.498Z","updated_at":"2025-12-24T18:40:39.795Z","avatar_url":"https://github.com/ialopezg.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ialopezg","https://patreon.com/ialopezg","https://opencollective.com/ialopezg","https://ko-fi.com/ialopezg","https://www.paypal.me/isidrolopezg"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e  \n  \u003ch1\u003eCustom Logger Service\u003c/h1\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eCustom tools for NodeJS\u003c/strong\u003e\n\u003c/div\u003e\n\u003cbr /\u003e\n\n\u003e Custom Logger for Apps and API Services\n\n\u003cdiv align=\"center\"\u003e\n  \n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Build Status][travis-image]][travis-url]\n[![Coverage Status](https://coveralls.io/repos/github/ialopezg/custom-logger-service/badge.svg?branch=main)](https://coveralls.io/github/ialopezg/custom-logger-service?branch=main)\n\u003cbr class=\"badge-separator\" /\u003e\n\u003cspan class=\"badge-patreon\"\u003e\u003ca href=\"https://patreon.com/ialopezg\" title=\"Donate to this project using Patreon\"\u003e\u003cimg src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\u003cspan class=\"badge-opencollective\"\u003e\u003ca href=\"https://opencollective.com/ialopezg\" title=\"Donate to this project using Open Collective\"\u003e\u003cimg src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\u003cspan class=\"badge-paypal\"\u003e\u003ca href=\"https://www.paypal.me/isidrolopezg\" title=\"Donate to this project using Open Collective\"\u003e\u003cimg src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"Open Collective donate button\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\n\u003c/div\u003e\n\n## Description\n\nCUstomLoggerService is an utility service that helps you to display debugging, error, informative, log, and warning messages. This tool is made to be used in [Node.js](https://nodejs.org), which allows you to easily build efficient,\nscalable applications. It uses modern JavaScript, is built with [TypeScript](https://typescriptlang.org) and\nbring best JavaScript concepts.\n\n## Technology Stack\n\n\u003cdiv align=\"center\"\u003e\n\n![VS Code](https://img.shields.io/badge/-VS%20Code-007ACC?style=plastic\u0026logo=visual-studio-code)\n![Shell](https://img.shields.io/badge/-Shell-blasck?style=plastic\u0026logo=Shell)\n![Git](https://img.shields.io/badge/-Git-black?style=plastic\u0026logo=git)\n![GitHub](https://img.shields.io/badge/-GitHub-181717?style=plastic\u0026logo=github)\n![Node.JS](https://img.shields.io/badge/-Node.JS-black?style=plastic\u0026logo=Node.js)\n![TypeScript](https://img.shields.io/badge/-TypeScript-000000?style=flat\u0026logo=typescript)\n![JavaScript](https://img.shields.io/badge/-JavaScript-000000?style=flat\u0026logo=javascript)\n\n\u003c/div\u003e\n\n## Features\n\n- Compatible with both TypeScript and ES6 (I recommend to use [TypeScript](http://www.typescriptlang.org))\n\n## Getting started\n\n### Requirements\n\n- [NodeJS](https://nodejs.org/) v8+\n- [NPM](https://www.npmjs.com/package/npm) v6+ or [yarn](https://yarnpkg.com/) v1.17+\n- [custom-console-colors](https://www.npmjs.com/package/custom-console-colors)\n\n### Installation\n\nYou have two options to install this repository.\n1. By adding the dependency to your `package.json` file.\n\n   ```json\n   {\n     \"dependencies\": {\n       \"custom-logger-service\": \"^0.2.2\"\n     }\n   }\n   ```\n\n   ```bash\n   # Install dependencies\n   # NPM\n   npm install\n   # or Yarn\n   yarn\n   ```\n\n2. By using a package manager\n   ```bash\n   # NPM\n   npm install --save custom-console-color\n   # or Yarn\n   yarn add @ialopezg/core\n   ```\n\n### Usage\n\n#### Initialization\n__Default options__\n```javascript\nconst { LoggerService } = require('custom-logger-service')\n\n// With default options\nconst logger = new Logger();\n```\n\n__No options nor styles__\n```javascript\nconst logger = new Logger({\n  useFormat: false,\n});\n```\n\n__No options and default format__\n```javascript\nconst config: FormatOptions = {\n  useFormat: true,\n  useAppName: false,\n  usePID: false,\n  useContext: false,\n  useEvent: false,\n  useTimestamp: false,\n  usePadding: false,\n};\nconst logger = new LoggerService(config);\n```\n### Usage\n\n```javascript\nconst message = 'Hello World!';\n\nlogger.debug(message);\nlogger.error(message);\nlogger.info(message);\nlogger.log(message);\nlogger.warn(message);\n```\n\n### Examples\n\n- [Server-Side Rendering](./exampes)\n\n## Available Colors and Styles\n\n| Event | Color   |\n| ----- | ------- |\n| debug | grey    |\n| error | red     |\n| info  | blue    |\n| log   | green   |\n| warn  | yellow  |\n\n## People\n\nAuthor - [Isidro A. Lopez G.](https://github.com/ialopezg\")\n\n## License\n\nCustomLoggerService is under [MIT](LICENSE) license.\n\n---\n\n\u0026copy; Copyright 2019-present - CustomLoggerService by [Isidro A. López G.](https://ialopezg.com/)\n\n[npm-image]: https://img.shields.io/npm/v/custom-logger-service.svg\n[npm-url]: https://npmjs.org/package/custom-logger-service\n[downloads-image]: https://img.shields.io/npm/dm/custom-logger-service.svg\n[downloads-url]: https://www.npmjs.com/package/custom-logger-service\n[travis-image]: https://img.shields.io/travis/ialopezg/custom-logger-service/main.svg\n[travis-url]: https://travis-ci.org/ialopezg/custom-logger-service\n[coveralls-image]: https://img.shields.io/coveralls/ialopezg/custom-logger-service.svg?style=flat\n[coveralls-url]: https://coveralls.io/r/ialopezg/custom-logger-service?branch=main\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fialopezg%2Fcustom-logger-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fialopezg%2Fcustom-logger-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fialopezg%2Fcustom-logger-service/lists"}