{"id":17932116,"url":"https://github.com/jpmcb/gopherlogs","last_synced_at":"2025-06-25T23:03:46.403Z","repository":{"id":65471093,"uuid":"585983418","full_name":"jpmcb/gopherlogs","owner":"jpmcb","description":"A simple, powerful, and extensible Go logging framework suitable for stylized command line utilities and multi-writer logging","archived":false,"fork":false,"pushed_at":"2024-08-13T17:02:44.000Z","size":29,"stargazers_count":23,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-25T23:02:24.242Z","etag":null,"topics":["cli","golang","logging"],"latest_commit_sha":null,"homepage":"","language":"Go","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/jpmcb.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-06T16:11:59.000Z","updated_at":"2024-09-29T16:17:51.000Z","dependencies_parsed_at":"2025-01-23T22:24:00.305Z","dependency_job_id":"070a5634-4667-4a0c-905a-584cca4f89b9","html_url":"https://github.com/jpmcb/gopherlogs","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"9789c6b10bbc32ddbcecec1011b591ff480a2c3c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jpmcb/gopherlogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmcb%2Fgopherlogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmcb%2Fgopherlogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmcb%2Fgopherlogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmcb%2Fgopherlogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpmcb","download_url":"https://codeload.github.com/jpmcb/gopherlogs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmcb%2Fgopherlogs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261967128,"owners_count":23237662,"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":["cli","golang","logging"],"created_at":"2024-10-28T21:25:22.084Z","updated_at":"2025-06-25T23:03:46.372Z","avatar_url":"https://github.com/jpmcb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/23109390/227600598-11e1f583-fca2-4f9e-9626-b26dbdbc1323.png\" width=300\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/23109390/227600551-58c7c47b-3407-4263-8c48-668e5a8743c6.gif\" width=450\u003e\n\u003c/p\u003e\n\n# gopherlogs\n\n[![go report card](https://goreportcard.com/badge/github.com/jpmcb/gopherlogs \"go report card\")](https://goreportcard.com/report/github.com/jpmcb/gopherlogs)\n[![test status](https://github.com/jpmcb/gopherlogs/workflows/Tests/badge.svg?branch=main)](https://github.com/jpmcb/gopherlogs/actions)\n[![Apache-2.0 license](https://img.shields.io/github/license/jpmcb/gopherlogs)](https://opensource.org/licenses/Apache-2.0)\n[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go\u0026logoColor=white)](https://pkg.go.dev/github.com/jpmcb/gopherlogs)\n\n_A simple, powerful, and extensible Go logging framework with batteries included 🔋._\n\n`gopherlogs` is ideal for command line applications,\ncombined logging to system files alongside terminal output,\nand much more.\n\nFeatures:\n- Animated logging compatible with concurrent Go routines\n- Support for _\"emoji\"_ style logs\n- Dynamic log line replacement\n- No external dependencies; what you see is what you get.\n\n---\n\n## Usage\n\nInstall as a dependency in your Go module:\n\n```\nmodule example.com\n\ngo 1.19\n\nrequire github.com/jpmcb/gopherlogs v0.1.0\n```\n\nAnd tidy up your modules and `go.sum` with:\n\n```\n$ go mod tidy\n```\n\nIn your go code, you can now import `gopherlogs`:\n\n```go\npackage main\n\nimport (\n        \"github.com/jpmcb/gopherlogs\"\n)\n\nfunc main() {\n        // Creates a new logger with options\n        l, err := gopherlogs.NewLogger(\n            WithLogVerbosity(5),\n        )\n\n        // Handle errors from creating a new logger\n        if err != nil {\n            panic(\"Could not create new logger\")\n        }\n\n        // Start logging!\n        l.Info(\"Hello world\")\n}\n```\n\nWhen you run your Go program, it will look something like this:\n\n```\n$ go run main.go\nHello world\n```\n\n## Why another Go logging framework?\n\nThis library is heavily inspired by the original logging library\nfrom [Tanzu Community Edition's](https://github.com/vmware-tanzu/community-edition)\n`unmanaged-cluster` CLI (which is no longer being maintained and is effectively abandoned).\n\nI worked on that project for a few years, and we created the first iterations of this\nlogging framework because we couldn't find anything suitable enough\nthat was still very delightful to experience.\n\nThat experience is at the heart of this library; an amazing user experience\nfor both the _end user_ and the _developer_.\nIn some ways, this logging library is a fork of some of the best pieces of Go code\nthat came out of that project.\nAnd in the end, I believed it deserved to see abit more lite of day.\n\nShout out and huge kudos to the original authors: @stmcginnis, @joshrosso, and @jpmcb (me).\nYour work has inspired me and continues to bring me joy!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmcb%2Fgopherlogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpmcb%2Fgopherlogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmcb%2Fgopherlogs/lists"}