{"id":16387432,"url":"https://github.com/arb/good-file","last_synced_at":"2026-06-03T02:30:16.943Z","repository":{"id":21420141,"uuid":"24738239","full_name":"arb/good-file","owner":"arb","description":"File broadcasting for Good process monitor","archived":false,"fork":false,"pushed_at":"2016-04-12T16:10:41.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T07:23:52.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/arb.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-10-02T21:54:18.000Z","updated_at":"2018-11-11T06:33:01.000Z","dependencies_parsed_at":"2022-08-21T09:41:00.543Z","dependency_job_id":null,"html_url":"https://github.com/arb/good-file","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/arb%2Fgood-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arb%2Fgood-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arb%2Fgood-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arb%2Fgood-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arb","download_url":"https://codeload.github.com/arb/good-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170087,"owners_count":19759145,"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-11T04:26:32.340Z","updated_at":"2026-06-03T02:30:16.870Z","avatar_url":"https://github.com/arb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# good-file\n\nFile logging module for [good](https://github.com/hapijs/good) process monitoring.\n\n![Build Status](https://travis-ci.org/hapijs/good-file.svg?branch=master) ![Current Version](https://img.shields.io/npm/v/good-file.svg)\n\nLead Maintainer: [Adam Bretz](https://github.com/arb)\n\n## Usage\n\n`good-file` is a [good-reporter](https://github.com/hapijs/good-reporter) implementation to write hapi server events to log files.\n\n## Good File\n### new GoodFile (path, [options])\n\ncreates a new GoodFile object with the following arguments\n- `path` - (required) location to write log files. \"./path/\" creates {timestamp} file in \"./path/\". \"./path/log_name\" creates \"log_name\" in \"./path/\". All log files created with `good-file` have three digit numerical extensions that are padded with \"0\"s (\"1410562652544.005\" or \"log_name.005\"). If \"./path/\" has any existing log files when this module is `start()`ed, the next number in sequence will be used.\n- `[options]` - optional arguments object\n\t- `[events]` - an object of key value paris. Defaults to `{ request: '*', log: '*' }`.\n\t\t- `key` - one of (\"request\", \"log\", \"error\", or \"ops\") indicating the hapi event to subscribe to\n\t\t- `value` - an array of tags to filter incomming events. An empty array indicates no filtering.\n\t- `[maxFileSize]` - how large a single log file can grow before a new one is created. Defaults to `Infinity`\n\n### GoodFile Methods\n`good-file` implements the [good-reporter](https://github.com/hapijs/good-reporter) interface as has no additional public methods.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farb%2Fgood-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farb%2Fgood-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farb%2Fgood-file/lists"}