{"id":17972360,"url":"https://github.com/ww24/log4js-node-extend","last_synced_at":"2025-03-25T12:32:57.898Z","repository":{"id":14228555,"uuid":"16935569","full_name":"ww24/log4js-node-extend","owner":"ww24","description":"log4js + line number","archived":false,"fork":false,"pushed_at":"2017-08-15T18:09:25.000Z","size":14,"stargazers_count":28,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T07:13:30.117Z","etag":null,"topics":["log4js","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ww24.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":"2014-02-18T03:22:34.000Z","updated_at":"2023-05-30T01:57:00.000Z","dependencies_parsed_at":"2022-08-28T16:41:38.848Z","dependency_job_id":null,"html_url":"https://github.com/ww24/log4js-node-extend","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ww24%2Flog4js-node-extend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ww24%2Flog4js-node-extend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ww24%2Flog4js-node-extend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ww24%2Flog4js-node-extend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ww24","download_url":"https://codeload.github.com/ww24/log4js-node-extend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245462949,"owners_count":20619584,"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":["log4js","nodejs"],"created_at":"2024-10-29T16:13:14.725Z","updated_at":"2025-03-25T12:32:57.599Z","avatar_url":"https://github.com/ww24.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"log4js-node-extend [![Build Status](https://secure.travis-ci.org/ww24/log4js-node-extend.png?branch=master)](http://travis-ci.org/ww24/log4js-node-extend) [![Dependency Status](https://gemnasium.com/ww24/log4js-node-extend.png)](https://gemnasium.com/ww24/log4js-node-extend)\n==================\n\nIt add useful meta data of code (file-name, function-name line-number, column-number) for `log4js-node`.\n\nExample\n---------\n```\n[2014-02-18 12:24:14.238] [INFO] category - test at \u003canonymous\u003e (test.js:57:9)\n```\n\nInstallation\n---------\n```\nnpm install log4js-extend\n```\n\nUsage\n---------\n```js\nconst log4js = require(\"log4js\");\nconst log4js_extend = require(\"log4js-extend\");\n\nlog4js_extend(log4js, {\n  path: __dirname,\n  format: \"at @name (@file:@line:@column)\"\n});\n\nconst logger = log4js.getLogger(\"category\");\nlogger.info(\"test\");\n```\n\nOptions\n---------\n### path\nUse relative path from path directory.\n\ndefault: `null`\n\n### format\nSimple log format.\n\ndefault: `\"at @name (@file:@line:@column)\"`\n\n#### Keywords will replace as below.\n* @name : function name\n* @file : file name\n* @line : line number\n* @column : column number\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fww24%2Flog4js-node-extend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fww24%2Flog4js-node-extend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fww24%2Flog4js-node-extend/lists"}