{"id":39013725,"url":"https://github.com/heartwilltell/dummylog","last_synced_at":"2026-01-17T17:23:25.109Z","repository":{"id":57631311,"uuid":"409586592","full_name":"heartwilltell/dummylog","owner":"heartwilltell","description":"🤪 Dummylog - prints silly messages to stdout or file in text or JSON format.","archived":false,"fork":false,"pushed_at":"2021-10-04T12:30:00.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T15:44:24.400Z","etag":null,"topics":["go","golang","golang-library","golang-package","library","tools"],"latest_commit_sha":null,"homepage":"","language":"Go","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/heartwilltell.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":".github/CODEOWNERS.md","security":null,"support":null}},"created_at":"2021-09-23T12:40:00.000Z","updated_at":"2022-08-01T07:46:05.000Z","dependencies_parsed_at":"2022-09-26T20:11:36.561Z","dependency_job_id":null,"html_url":"https://github.com/heartwilltell/dummylog","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/heartwilltell/dummylog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heartwilltell%2Fdummylog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heartwilltell%2Fdummylog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heartwilltell%2Fdummylog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heartwilltell%2Fdummylog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heartwilltell","download_url":"https://codeload.github.com/heartwilltell/dummylog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heartwilltell%2Fdummylog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go","golang","golang-library","golang-package","library","tools"],"created_at":"2026-01-17T17:23:25.005Z","updated_at":"2026-01-17T17:23:25.095Z","avatar_url":"https://github.com/heartwilltell.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤪 Dummylog\n\nDummylog - prints silly messages to stdout or file in text or JSON format.\n___\n\n## ⚠️ This is not a logging library!\n\nMain purpose is to help you test readers in your own programs.\n___\n\n## Usage\n\nWrite text logs to stdout:\n\n```\nif err := dummylog.New().Start(ctx); err != nil {\n    return err\n}\n```\n\nWrite JSON structured logs to stdout:\n\n```\nif err := dummylog.New(dummylog.WithFormat(dummylog.JSON)).Start(ctx); err != nil {\n    return err\n}\n```\n\nWrite JSON structured logs to file:\n\n```\nfile, createErr := os.Create(filePath)\nif createErr != nil {\n    return createErr\n}\n\ndummy := dummylog.New(dummylog.WithWriter(file), dummylog.WithFormat(dummylog.JSON))\nif err := dummy.Start(ctx); err != nil {\n    return err\n}\n```\n\n## ⌨️ Command line interface\n\nRun dummylog as a process to prints messages to file or to stdout:\n\n```\n./dummylog run\n\nflags: \n  -format - sets log format: 'text' or 'json'. Default is text.\n  -file   - sets path to file where logs will be written, if\n            flag is not present, logs will written to stdout.\n```\n\nRun dummylog as a server which listen to POST :8080/say and prints request body as message to file or to stdout:\n\n```\n./dummylog serve\n\nflags: \n    -serveraddr - sets HTTP server address. Default is ':8080'.\n    -file       - sets path to file where logs will be written, if \n                  flag is not present, logs will written to stdout.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheartwilltell%2Fdummylog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheartwilltell%2Fdummylog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheartwilltell%2Fdummylog/lists"}