{"id":22338225,"url":"https://github.com/ipfans/fxslog","last_synced_at":"2025-03-26T08:26:07.281Z","repository":{"id":64300591,"uuid":"571367164","full_name":"ipfans/fxslog","owner":"ipfans","description":"Integration slog with uber-go/fx","archived":false,"fork":false,"pushed_at":"2023-10-21T16:21:18.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T10:11:24.744Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ipfans.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":"2022-11-28T00:47:01.000Z","updated_at":"2023-03-04T07:43:52.000Z","dependencies_parsed_at":"2025-01-31T10:11:15.460Z","dependency_job_id":"f4e1619e-7073-451b-8113-3822614ae7fe","html_url":"https://github.com/ipfans/fxslog","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Ffxslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Ffxslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Ffxslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2Ffxslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfans","download_url":"https://codeload.github.com/ipfans/fxslog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245617014,"owners_count":20644744,"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":[],"created_at":"2024-12-04T06:13:31.923Z","updated_at":"2025-03-26T08:26:07.257Z","avatar_url":"https://github.com/ipfans.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fxslog\n\n[![MIT License](https://img.shields.io/github/license/ipfans/fxslog)](https://github.com/ipfans/fxslog/blob/main/LICENSE)\n[![GoDoc](http://godoc.org/github.com/ipfans/fxslog?status.svg)](http://godoc.org/github.com/ipfans/fxslog)\n[![GitHub release](https://img.shields.io/github/v/release/ipfans/fxslog)](https://github.com/ipfans/fxslog/releases)\n[![Test](https://github.com/ipfans/fxslog/actions/workflows/pull-request.yml/badge.svg?branch=main)](https://github.com/ipfans/fxslog/actions/workflows/pull-request.yml)\n[![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/ipfans/fxslog)](https://github.com/ipfans/fxslog/blob/main/go.mod)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ipfans/fxslog)](https://goreportcard.com/report/github.com/ipfans/fxslog)\n[![Issues](https://img.shields.io/github/issues/ipfans/fxslog)](https://github.com/ipfans/fxslog/issues)\n\nIntegration slog with `uber-go/fx`.\n\nNote: **slog required Go 1.19+**\n\n## HOWTO\n\n```go\n\tapp := fx.New(\n\t\tfx.Provide(func() *slog.Logger {\n\t\t\treturn slog.New(slog.NewJSONHandler(os.Stdout))\n\t\t}),\n\t\tfx.WithLogger(func(logger *slog.Logger) fxevent.Logger {\n\t\t\treturn fxslog.New(logger)\n\t\t}),\n\t)\n\tdefer app.Stop(context.TODO())\n\tapp.Start(context.TODO())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Ffxslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfans%2Ffxslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Ffxslog/lists"}