{"id":28166540,"url":"https://github.com/lileio/logr","last_synced_at":"2025-05-15T13:13:47.104Z","repository":{"id":57481721,"uuid":"131310146","full_name":"lileio/logr","owner":"lileio","description":"Adds Opentracing (Zipkin) to Logrus loggers","archived":false,"fork":false,"pushed_at":"2023-02-25T04:12:48.000Z","size":17,"stargazers_count":18,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-10T23:02:45.110Z","etag":null,"topics":["go","logging","logrus","opentracing"],"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/lileio.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":"2018-04-27T14:54:22.000Z","updated_at":"2025-02-11T21:34:00.000Z","dependencies_parsed_at":"2024-06-18T20:37:34.484Z","dependency_job_id":null,"html_url":"https://github.com/lileio/logr","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lileio%2Flogr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lileio%2Flogr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lileio%2Flogr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lileio%2Flogr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lileio","download_url":"https://codeload.github.com/lileio/logr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254346569,"owners_count":22055809,"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":["go","logging","logrus","opentracing"],"created_at":"2025-05-15T13:13:16.834Z","updated_at":"2025-05-15T13:13:47.091Z","avatar_url":"https://github.com/lileio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logr\n\nLogr is a simple helper for [Logrus](https://github.com/sirupsen/logrus) which helps wrap loggers to log [Opentracing](http://opentracing.io/) information.\n\n### Example\n\nIf you have a context that might already be in a trace, then you can simple create a new Logrus logger with your context. This a gRPC handler for example.\n\n``` go\nfunc (s *routeGuideServer) GetFeature(ctx context.Context, point *pb.Point) (*pb.Feature, error) {\n        logr.WithCtx(ctx).Info(\"Called GetFeature woo!\")\n}\n```\n\n### Interface\n\nLogr follows the `logr.FieldLogger` interface\n\n``` go\ntype FieldLogger interface {\n\tDebugf(format string, args ...interface{})\n\tInfof(format string, args ...interface{})\n\tPrintf(format string, args ...interface{})\n\tWarnf(format string, args ...interface{})\n\tWarningf(format string, args ...interface{})\n\tErrorf(format string, args ...interface{})\n\tFatalf(format string, args ...interface{})\n\tPanicf(format string, args ...interface{})\n\n\tDebug(args ...interface{})\n\tInfo(args ...interface{})\n\tPrint(args ...interface{})\n\tWarn(args ...interface{})\n\tWarning(args ...interface{})\n\tError(args ...interface{})\n\tFatal(args ...interface{})\n\tPanic(args ...interface{})\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flileio%2Flogr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flileio%2Flogr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flileio%2Flogr/lists"}