{"id":16820438,"url":"https://github.com/op/redlog","last_synced_at":"2025-04-11T03:08:26.622Z","repository":{"id":239247580,"uuid":"798952784","full_name":"op/redlog","owner":"op","description":"Gloss styles for log 🪵 and slog 💄","archived":false,"fork":false,"pushed_at":"2024-05-11T21:47:50.000Z","size":84,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T03:08:08.739Z","etag":null,"topics":["catppuccin","go","logging","pastel","slog","structured-logging"],"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/op.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-10T20:44:03.000Z","updated_at":"2024-09-27T15:37:52.000Z","dependencies_parsed_at":"2024-05-11T00:34:27.922Z","dependency_job_id":"04cdc3fd-8379-4074-ad7d-3c5a95e14439","html_url":"https://github.com/op/redlog","commit_stats":null,"previous_names":["op/redlog"],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fredlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fredlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fredlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/op%2Fredlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/op","download_url":"https://codeload.github.com/op/redlog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333604,"owners_count":21086200,"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":["catppuccin","go","logging","pastel","slog","structured-logging"],"created_at":"2024-10-13T10:56:47.550Z","updated_at":"2025-04-11T03:08:26.608Z","avatar_url":"https://github.com/op.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Red Log\n\n\u003cp\u003e\n    \u003ca href=\"https://github.com/op/redlog/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/op/redlog.svg?filter=v*\" alt=\"Latest Release\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pkg.go.dev/github.com/op/redlog?tab=doc\"\u003e\u003cimg src=\"https://godoc.org/github.com/golang/gddo?status.svg\" alt=\"Go Docs\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/op/redlog/actions\"\u003e\u003cimg src=\"https://github.com/op/redlog/workflows/build/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/op/redlog\"\u003e\u003cimg alt=\"Go Report Card\" src=\"https://goreportcard.com/badge/github.com/op/redlog\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nGloss styles for [logs][log]. 🪵\n\nIt contains a set of styles that can be used with the [log] package. The\nfollowing themes are provided:\n\n* [catppucchin](https://catppuccin.com) -- adaptive variants\n\n[log]: /charmbracelet/log\n\n## Gallery\n\n*Catppuccin Latte*\n\n\u003cpicture\u003e\n    \u003cimg width=\"500\" src=\"./assets/catppuccin-latte.svg\" alt=\"catppuccin latte\" /\u003e\n\u003c/picture\u003e\n\n*Catppuccin Frappé*\n\n\u003cpicture\u003e\n    \u003cimg width=\"500\" src=\"./assets/catppuccin-frappe.svg\" alt=\"catppuccin frappe\" /\u003e\n\u003c/picture\u003e\n\n*Catppuccin Macchiato*\n\n\u003cpicture\u003e\n    \u003cimg width=\"500\" src=\"./assets/catppuccin-macchiato.svg\" alt=\"catppuccin macchiato\" /\u003e\n\u003c/picture\u003e\n\n*Catppuccin Mocha*\n\n\u003cpicture\u003e\n    \u003cimg width=\"500\" src=\"./assets/catppuccin-mocha.svg\" alt=\"catppuccin mocha\" /\u003e\n\u003c/picture\u003e\n\n## Usage\n\nUse `go get` to download the dependency.\n\n```bash\ngo get github.com/op/redlog@latest\n```\n\nThen, `import` it in Go files:\n\n```go\nimport (\n  \"github.com/charmbracelet/log\"\n  \"github.com/op/redlog\"\n)\n```\n\nThe Red Log package comes with a select few styles of the themes listed above.\nThese are ready to be used straight away.\n\n```go\nlog.SetStyles(redlog.Catppuccin.Mocha)\nslog.SetDefault(slog.New(log.Default()))\n```\n\n## Specific theme\n\nIf you want to limit the number of dependencies, or make some customisation of\nthe theme yourself, you can directly import and use the theme.\n\n```go\nimport (\n  \"github.com/charmbracelet/log\"\n  \"github.com/op/redlog/pkg/catppuccin\"\n)\n```\n\nThen initiate the theme the way that suits your needs.\n\n```go\n// use an adaptive theme that switches between light and dark depending on the\n// terminal's color scheme\nvariant := catppuccin.Adaptive(catppuccin.Latte, catppuccin.Mocha)\nlog.SetStyles(catppuccin.Styles(variant))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fop%2Fredlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fop%2Fredlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fop%2Fredlog/lists"}