{"id":17679927,"url":"https://github.com/sbsoftware/node-basic-logger","last_synced_at":"2025-03-30T18:47:57.560Z","repository":{"id":2090010,"uuid":"3030053","full_name":"sbsoftware/node-basic-logger","owner":"sbsoftware","description":"basic logger for nodejs supporting error, warning, debug and info messages with timestamp.","archived":false,"fork":false,"pushed_at":"2014-08-04T20:47:23.000Z","size":129,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-05T21:28:10.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sbsoftware.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":"2011-12-21T22:04:47.000Z","updated_at":"2014-08-04T20:47:23.000Z","dependencies_parsed_at":"2022-08-06T12:00:39.015Z","dependency_job_id":null,"html_url":"https://github.com/sbsoftware/node-basic-logger","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbsoftware%2Fnode-basic-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbsoftware%2Fnode-basic-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbsoftware%2Fnode-basic-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbsoftware%2Fnode-basic-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbsoftware","download_url":"https://codeload.github.com/sbsoftware/node-basic-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365640,"owners_count":20765546,"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":[],"created_at":"2024-10-24T09:04:44.607Z","updated_at":"2025-03-30T18:47:57.280Z","avatar_url":"https://github.com/sbsoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Basic-Logger\n============\n\nBasic logger for nodejs supporting error, warning, info, debug and trace messages with (or without) timestamp.\nEverything you log is printed to the console.\n\nInstallation\n------------\n\n\tnpm install basic-logger\n\nUsage\n-----\n\n\tvar Logger = require('basic-logger');\n\t// configure level one time, it will be set to every instance of the logger\n\tLogger.setLevel('warning'); // only warnings and errors will be shown\n\tLogger.setLevel('warning', true); // only warnings and errors will be shown and no message about the level change will be printed\n\n\tvar customConfig = {\n\t\tshowMillis: true;\n\t\tshowTimestamp: true;\n\t};\n\n\tvar log = new Logger(customConfig) // custom config parameters will be used, defaults will be used for the other parameters\n\n\tlog.error('An error occurred');\n\tlog.warn('I am not kidding!');\n\tlog.info('you just screwed this');\n\tlog.debug('this code is still alive...');\n\tlog.trace('we are here.');\n\t\nConfig options\n--------------\n\n* `showTimestamp` - Show the timestamp with every message.\n* `showMillis` - Show milliseconds in the timestamp.\n* `printObjFunc` - The function to apply objects to, if logged. Default is util.inspect.\n* `prefix` - String that is prepended to every message logged with this instance.\n\nTest\n----\n\nYou'll need `vows`. Then just run `npm test`.\n\nFuture versions\n---------------\n\n* support for colored log messages\n* log to file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbsoftware%2Fnode-basic-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbsoftware%2Fnode-basic-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbsoftware%2Fnode-basic-logger/lists"}