{"id":29034289,"url":"https://github.com/dmzhan/electron-log-unconfig","last_synced_at":"2026-05-19T19:01:38.753Z","repository":{"id":239039406,"uuid":"798319111","full_name":"dmZhan/electron-log-unconfig","owner":"dmZhan","description":"A very simple logging module for your Electron application with unconfig.","archived":false,"fork":false,"pushed_at":"2024-05-27T02:56:25.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T14:08:56.281Z","etag":null,"topics":["electron","electron-log","unconfig"],"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/dmZhan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-09T14:40:25.000Z","updated_at":"2024-05-27T02:56:27.000Z","dependencies_parsed_at":"2024-05-16T15:46:08.223Z","dependency_job_id":null,"html_url":"https://github.com/dmZhan/electron-log-unconfig","commit_stats":null,"previous_names":["dmzhan/electron-log-unconfig"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dmZhan/electron-log-unconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmZhan%2Felectron-log-unconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmZhan%2Felectron-log-unconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmZhan%2Felectron-log-unconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmZhan%2Felectron-log-unconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmZhan","download_url":"https://codeload.github.com/dmZhan/electron-log-unconfig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmZhan%2Felectron-log-unconfig/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262053587,"owners_count":23251220,"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":["electron","electron-log","unconfig"],"created_at":"2025-06-26T11:07:10.386Z","updated_at":"2026-05-19T19:01:33.683Z","avatar_url":"https://github.com/dmZhan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-log\n\n[![NPM version](https://img.shields.io/npm/v/electron-log-unconfig)](https://www.npmjs.com/packages/electron-log-unconfig)\n\n## Declare\n\nForked from [`electron-log`](https://github.com/megahertz/electron-log/tree/v4.4.8)@4.4.8\n\n### changes in this fork\n\n- You can add a `.logrc` or `.logrc.json` file in the project root directory and configure the log output method.\n- You can add a `.logrc` field to `package.json` and configure the log output method.\n- If you don't add config file or field, it works as normal `electron-log`.\n\n## Usage\n\n```bash\nnpm install electron-log-unconfig -D\n```\n\nAnd then you can add a config file named `.logrc` or `.logrc.json` to root or add a `.logrc` field to `package.json`.\n\n### Options\n\nBoth config file and field have samed options.\n\n```json\n{\n  \"filePath\": \"D:/logs\",\n  \"fileName\": \"Test-{y}-{m}-{d}\",\n  \"maxSize\": 100,\n  \"segmentation\": true,\n  \"prefixPkgName\": false,\n  \"countLength\": 3\n}\n```\n\n#### filePath\n\n- Required: `false`\n- Type: `string`\n\nThe log output path.\n\n#### fileName\n\n- Required: `false`\n- Type: `string`\n\nFile name's template. It will replace with date.\n\nFor example(Today is 2024/2/1):\n\n```txt\nTest-{y}-{m}-{d}      -\u003e  filename: Test-2024-2-1.log\nTest-{y}-{m}          -\u003e  filename: Test-2024-2.log\nTest-{y}              -\u003e  filename: Test-2024.log\nTest-{y}-AA{m}-BB{d}  -\u003e  filename: Test-2024-AA2-BB1.log\n```\n\n#### maxSize\n\n- Required: `false`\n- Type: `number`\n- Default: `1024`\n\nSingle file's size. The unit ofmeasurement is magabytes.\n\n#### segmentation\n\n- Required: `false`\n- Type: `boolean`\n- Default: `false`\n\nWhether to enable file splitting.\n\n#### prefixPkgName\n\n- Required: `false`\n- Type: `boolean`\n- Default: `false`\n\nWhether to add package name as prefix.\n\n#### countLength\n\n- Required: `false`\n- Type: `number`\n- Default: 3\n\nDefault filename(if segmentation is true) is `xxx.001.log`.\n\nIf set countLength to 5, filename is `xxx.00001.log`.\n\n## Future\n\nMaybe i will rewrite electron-log.But for now i'm just going to add a few methods to meet my needs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmzhan%2Felectron-log-unconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmzhan%2Felectron-log-unconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmzhan%2Felectron-log-unconfig/lists"}