{"id":17726677,"url":"https://github.com/sergeysova/conlog","last_synced_at":"2026-07-03T01:06:36.925Z","repository":{"id":31068360,"uuid":"34627249","full_name":"sergeysova/conlog","owner":"sergeysova","description":"Simple colorful logger for node.js console","archived":false,"fork":false,"pushed_at":"2015-08-26T15:40:20.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T11:06:15.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/conlog","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergeysova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-26T19:20:55.000Z","updated_at":"2020-05-07T21:46:13.000Z","dependencies_parsed_at":"2022-09-18T01:22:32.039Z","dependency_job_id":null,"html_url":"https://github.com/sergeysova/conlog","commit_stats":null,"previous_names":["lestad/conlog"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fconlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fconlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fconlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fconlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeysova","download_url":"https://codeload.github.com/sergeysova/conlog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246485211,"owners_count":20785260,"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-25T17:06:32.066Z","updated_at":"2025-10-27T06:12:22.477Z","avatar_url":"https://github.com/sergeysova.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# conlog\nSimple colorful logger for node.js console\n\n  [![NPM](https://nodei.co/npm/conlog.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/conlog/)\n  \n  ![Mocha Testing](https://img.shields.io/badge/build-passing-brightgreen.svg)\n  ![Dependencies](https://david-dm.org/lestad/conlog.svg)\n  [![npm version](https://badge.fury.io/js/conlog.svg)](http://badge.fury.io/js/conlog)\n  [![Code Climate](https://codeclimate.com/github/LestaD/conlog/badges/gpa.svg)](https://codeclimate.com/github/LestaD/conlog)\n  ![Downloads](https://img.shields.io/github/downloads/lestad/conlog/latest/total.svg)\n  ![GitHub tag](https://img.shields.io/github/tag/lestad/conlog.svg)\n  \n## Using\n\n```javascript\nvar __c = require('./index')('test');\n\n\"Info only message\".info();\n\"Debug information\".debug();\n\"Warning message\".warn();\n\"RED ERROR!\".error();\n\"Simple log\".log();\n\"Indented text\".li();\n\n__c.empty(2);\n__c.name('update');\n\n__c.disable();\n\"Run %s\".log(\"Forrest\");\n\"Test with %s arguments from %s %s\".debug('many', 'log', 'function');\n\n\"\".empty();\n\n__c.enable();\n\"Start log in %s environment\".log(\"debug\");\n\"%s listening on %s port\".info(\"Express\", \"1240\");\n\n\n```\n\nResult:\n```\n06 May 01:44:37 [test] Info only message\n     debug      [test] Debug information\n06 May 01:44:37 [test] Warning! Warning message\n06 May 01:44:37 [test] RED ERROR!\n06 May 01:44:37 [test] Simple log\n                [test] Indented text\n\n\n06 May 01:44:37 [update] Run Forrest\n     debug      [update] Test with many arguments from log function\n\n06 May 01:44:37 [update] Start log in debug environment\n06 May 01:44:37 [update] Express listening on 1240 port\n```\n\nYou can use attributes from [Colors](https://www.npmjs.com/package/colors):\n```javascript\n\"Using:\".log();\n\"help\".green.li();\n\"exit\".green.li();\n\"quit\".green.li();\n```\n\nAnd you can use `%s` template:\n```javascript\n\"Start log in %s environment\".log(\"debug\");\n\"%s listening on %s port\".info(\"Express\", \"1240\");\n```\n\nShows n empty lines:\n```javascript\nvar __c = require('conlog')('appname');\n\n// three empty lines\n__c.empty(3);\n// equal with\n\"\".empty(3); // or any string\n\n// shows one empty string\n\"\".empty(); // or __c.empty();\n\n```\n\n## Options\n\nYou can change the app name if you want:\n```javascript\nvar __c = require('conlog')('appname');\n\n__c.name('newappname');\n```\n\nYou can disable and enable color output:\n```javascript\nvar enablecolors = true;\nvar __c = require('conlog')('appname', enablecolors);\n\n\"Hello %s\".log('world');\n\n__c.disable();\n\n\"Specify log info\".info();\n\"Warning\".warn();\n\"Error\".error();\n\n__c.enable();\n\n\"Colorful text\".log();\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeysova%2Fconlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeysova%2Fconlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeysova%2Fconlog/lists"}