{"id":18151239,"url":"https://github.com/msantos/rotatee","last_synced_at":"2025-04-06T23:29:17.471Z","repository":{"id":236959545,"uuid":"793510242","full_name":"msantos/rotatee","owner":"msantos","description":"tee(1) with file rotation","archived":false,"fork":false,"pushed_at":"2024-09-28T11:42:34.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T05:30:07.730Z","etag":null,"topics":["tee"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msantos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-29T11:06:46.000Z","updated_at":"2025-01-18T10:56:06.000Z","dependencies_parsed_at":"2024-05-13T12:28:26.028Z","dependency_job_id":"05debaf5-e08e-4267-8766-37331b227a7a","html_url":"https://github.com/msantos/rotatee","commit_stats":null,"previous_names":["msantos/rotatee"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Frotatee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Frotatee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Frotatee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Frotatee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msantos","download_url":"https://codeload.github.com/msantos/rotatee/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247568714,"owners_count":20959752,"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":["tee"],"created_at":"2024-11-02T01:07:02.576Z","updated_at":"2025-04-06T23:29:17.423Z","avatar_url":"https://github.com/msantos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\n\nrotatee [*options*] [*file prefix*]\n\n# DESCRIPTION\n\n`rotatee` is `tee(1)` with file rotation:\n* stdin is written to stdout\n* stdin is also written to a file with a timestamp\n* if the next line of input exceeds the maximum configured number of\n  bytes, the input is written to a new file\n* if SIGTERM is received, `rotatee` will exit after writing the next\n  line of input\n\n# BUILDING\n\n```\ngo install codeberg.org/msantos/rotatee/cmd/rotatee@latest\n```\n\n## Source\n\nTo build a reproducible executable from the git repository:\n\n```\nCGO_ENABLED=0 go build -trimpath -ldflags \"-w\" ./cmd/rotatee\n```\n\n# EXAMPLES\n\n```\n# writes output to files in  the current directory prefixed with \"stdout\"\nrotatee\n\n# writes output to files in /tmp prefixed with \"output\"\nrotatee --dir=/tmp output\n```\n\n# SIGNALS\n\nSIGHUP\n: rotate log file\n\nSIGTERM\n: write next line of input and exit (use `--ignore` to disable)\n\n# OPTIONS\n\ndir *string*\n: output directory (default \".\")\n\nformat *string*\n: timestamp format (default \"2006-01-02T15:04:05Z07:00.log\")\n\nignore\n: ignore SIGTERM\n\nmaxsize *int*\n: max file size (MiB) (default 100)\n\noutput-error *string*\n: set behavior on write error (sigpipe, warn, warn-nopipe, exit, exit-nopipe) (default \"sigpipe\")\n\n* warn: diagnose errors writing to any output\n* warn-nopipe: diagnose errors writing to any output not a pipe\n* exit: exit on error writing to any output\n* exit-nopipe: exit on error writing to any output not a pipe\n* sigpipe: exit on any error writing to a pipe, diagnose errors writing\n  to any output not a pipe\n* ignore: suppress and do not exit on errors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Frotatee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsantos%2Frotatee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Frotatee/lists"}