{"id":13413310,"url":"https://github.com/cabify/logrusiowriter","last_synced_at":"2026-01-17T08:49:06.679Z","repository":{"id":57500241,"uuid":"201430966","full_name":"cabify/logrusiowriter","owner":"cabify","description":"io.Writer implementation using logrus logger [managed by soy-programador]","archived":false,"fork":false,"pushed_at":"2024-10-09T09:10:03.000Z","size":18,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":89,"default_branch":"master","last_synced_at":"2025-02-25T13:56:08.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/cabify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-08-09T08:58:25.000Z","updated_at":"2024-10-09T09:10:07.000Z","dependencies_parsed_at":"2025-03-14T19:32:18.871Z","dependency_job_id":"95908839-1605-458a-a69e-71c1bcfa3d5b","html_url":"https://github.com/cabify/logrusiowriter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cabify/logrusiowriter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Flogrusiowriter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Flogrusiowriter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Flogrusiowriter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Flogrusiowriter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cabify","download_url":"https://codeload.github.com/cabify/logrusiowriter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Flogrusiowriter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","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":[],"created_at":"2024-07-30T20:01:37.411Z","updated_at":"2026-01-17T08:49:06.658Z","avatar_url":"https://github.com/cabify.png","language":"Go","funding_links":[],"categories":["Logging","日志记录","Logging 日志库","Relational Databases"],"sub_categories":["Advanced Console UIs","检索及分析资料库","Search and Analytic Databases","SQL 查询语句构建库"],"readme":"# logrusiowriter\n## `io.Writer` implementation using logrus\n\n[![Travis CI build status](https://travis-ci.com/cabify/logrusiowriter.svg?branch=master)](https://travis-ci.com/cabify/logrusiowriter)\n[![GoDoc](https://godoc.org/github.com/cabify/logrusiowriter?status.svg)](https://godoc.org/github.com/cabify/logrusiowriter)\n[![Coverage Status](https://coveralls.io/repos/github/cabify/logrusiowriter/badge.svg?branch=master)](https://coveralls.io/github/cabify/logrusiowriter?branch=master)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)  \n\n# Motivation\n\nMany golang libraries use the golang's `log` package to print their logs. This means that if your application\nuses logrus to print structured logging, those packages will print a format that is (probably) incompatible with yours,\nand you may end losing logs in your logs collector because they can't be parsed properly.\n\n# Solution\n\nPrint the logs written using `log.Printf` through `logrus`, by setting `log.SetOutput` to an `io.Writer` implementation\nthat uses `logrus` as output, i.e.:\n\n```go\n\tlog.SetOutput(logrusiowriter.New())\n```\n\nSee `example_*_test.go` files to find testable examples that serve as documentation.\n\n# Simple solution\n\nOr... you can simply use the standard APIs that logrus provides, i.e., this does the same as this package:\n\n```go\n    log.SetOutput(logrus.WithFields(logrus.Fields{\"logger\": \"stdlib\"}).WriterLevel(logrus.InfoLevel))\n```\n\nSo, unless you want this to be configurable using an envconfig-filled struct, there's no reason to use this library.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabify%2Flogrusiowriter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcabify%2Flogrusiowriter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabify%2Flogrusiowriter/lists"}