{"id":30461636,"url":"https://github.com/ydb-platform/ydb-go-sdk-logrus","last_synced_at":"2025-09-12T22:45:52.440Z","repository":{"id":103031699,"uuid":"555475604","full_name":"ydb-platform/ydb-go-sdk-logrus","owner":"ydb-platform","description":"Logrus adapter for ydb-go-sdk events","archived":false,"fork":false,"pushed_at":"2024-09-18T09:32:15.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-01T00:25:39.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ydb-platform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-21T16:51:22.000Z","updated_at":"2024-09-18T09:32:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"85c6a949-f25a-47e0-b403-2a24828739b7","html_url":"https://github.com/ydb-platform/ydb-go-sdk-logrus","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ydb-platform/ydb-go-sdk-logrus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-go-sdk-logrus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-go-sdk-logrus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-go-sdk-logrus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-go-sdk-logrus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydb-platform","download_url":"https://codeload.github.com/ydb-platform/ydb-go-sdk-logrus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydb-platform%2Fydb-go-sdk-logrus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271768989,"owners_count":24817598,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-08-23T21:44:37.964Z","updated_at":"2025-08-23T21:44:40.235Z","avatar_url":"https://github.com/ydb-platform.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logrus\n\nlogrus package helps to create ydb-go-sdk traces with logging driver events with logrus\n\n## Usage\n```go\nimport (\n\t\"context\"\n\t\"os\"\n\n\t\"github.com/sirupsen/logrus\"\n\t\"github.com/ydb-platform/ydb-go-sdk/v3\"\n\t\"github.com/ydb-platform/ydb-go-sdk/v3/trace\"\n\n\tydbLogrus \"github.com/ydb-platform/ydb-go-sdk-logrus\"\n)\n\nfunc main() {\n\t// init your logrus.Logger\n\tlog := logrus.New(os.Stdout).With().Timestamp().Logger()\n\n\tdb, err := ydb.Open(\n\t\tcontext.Background(),\n\t\tos.Getenv(\"YDB_CONNECTION_STRING\"),\n\t\tydbLogrus.WithTraces(\n\t\t\t\u0026log,\n\t\t\ttrace.DetailsAll,\n\t\t),\n\t)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer func() {\n\t\t_ = db.Close(context.Background())\n\t}()\n\n\t// work with db\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fydb-go-sdk-logrus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydb-platform%2Fydb-go-sdk-logrus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydb-platform%2Fydb-go-sdk-logrus/lists"}