{"id":27455094,"url":"https://github.com/amuyu/node-logger","last_synced_at":"2026-05-16T00:32:07.755Z","repository":{"id":57177586,"uuid":"133331504","full_name":"amuyu/node-logger","owner":"amuyu","description":"Simple log for node","archived":false,"fork":false,"pushed_at":"2018-05-14T08:48:39.000Z","size":6,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T15:16:33.826Z","etag":null,"topics":["javascript","logger","logging","node"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amuyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-14T08:47:20.000Z","updated_at":"2019-09-25T05:02:56.000Z","dependencies_parsed_at":"2022-09-14T02:30:35.459Z","dependency_job_id":null,"html_url":"https://github.com/amuyu/node-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amuyu%2Fnode-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amuyu%2Fnode-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amuyu%2Fnode-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amuyu%2Fnode-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amuyu","download_url":"https://codeload.github.com/amuyu/node-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094935,"owners_count":21211837,"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":["javascript","logger","logging","node"],"created_at":"2025-04-15T15:16:36.110Z","updated_at":"2026-05-16T00:32:07.714Z","avatar_url":"https://github.com/amuyu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# npmlog\nThis logger is very basic.  It does the logging for node.  \nIt supports custom levels and display of file name and function name and line number of output location.\n\n\n# Installation\n\n```console\nnpm install amuyu-logger --save\n```\n\n# Basic Usage\n\n```js\nvar logger = require('amuyu-logger')\n\nfunction test() {\n// message -----------+                         \n// level ---+         |                         \n//          v         v                         \n    logger.log('Hello world')\n}\ntest()\n```\nexample output:\n```\n// \u003cfileName\u003e: \u003cfunctionName\u003e(lineNumber) message\ntest.js: test(10) helloworld\n```\n\n## log.[level](message...)\n\n* log.log(message, ...)\n* log.info(message, ...)\n* log.warn(message, ...)\n* log.error(message, ...)\n\n\n## log.addLevel(level, n, style, disp)\nSets up a new level\n\n* `level` {String} Level indicator\n* `style` {Object} Object with fg, bg, inverse, etc.\n\n```js\nvar logger = require('amuyu-logger')\n\nlogger.addLevel('test', { fg: 'green', bg: 'black' })\nlogger.test('hello')\n```\n\n# Style Objects\n\nStyle objects can have the following fields:\n\n* `fg` {String} Color for the foreground text\n* `bg` {String} Color for the background\n* `bold`, `inverse`, `underline` {Boolean} Set the associated property\n* `bell` {Boolean} Make a noise (This is pretty annoying, probably.)\n\n# NpmLog\n\nMore features are available in [npmlog](https://github.com/npm/npmlog).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famuyu%2Fnode-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famuyu%2Fnode-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famuyu%2Fnode-logger/lists"}