{"id":15675421,"url":"https://github.com/hypnoglow/gormzap","last_synced_at":"2025-05-06T21:48:55.200Z","repository":{"id":57490327,"uuid":"130367087","full_name":"hypnoglow/gormzap","owner":"hypnoglow","description":"GORM (v1) logger implementation using Uber's zap :zap: ","archived":false,"fork":false,"pushed_at":"2018-09-14T12:23:54.000Z","size":15,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-19T15:33:54.250Z","etag":null,"topics":["golang","gorm","logging","structured-logging","zap"],"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/hypnoglow.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}},"created_at":"2018-04-20T13:38:38.000Z","updated_at":"2024-10-03T05:13:23.000Z","dependencies_parsed_at":"2022-09-02T12:01:51.431Z","dependency_job_id":null,"html_url":"https://github.com/hypnoglow/gormzap","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypnoglow%2Fgormzap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypnoglow%2Fgormzap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypnoglow%2Fgormzap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypnoglow%2Fgormzap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypnoglow","download_url":"https://codeload.github.com/hypnoglow/gormzap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252776486,"owners_count":21802462,"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":["golang","gorm","logging","structured-logging","zap"],"created_at":"2024-10-03T16:00:02.453Z","updated_at":"2025-05-06T21:48:55.184Z","avatar_url":"https://github.com/hypnoglow.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gormzap\n\n[![GoDoc](https://godoc.org/github.com/hypnoglow/gormzap?status.svg)](https://godoc.org/github.com/hypnoglow/gormzap)\n[![CircleCI](https://circleci.com/gh/hypnoglow/gormzap.svg?style=shield)](https://circleci.com/gh/hypnoglow/gormzap)\n[![GitHub release](https://img.shields.io/github/tag/hypnoglow/gormzap.svg)](https://github.com/hypnoglow/gormzap/releases)\n[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n\n[GORM](https://github.com/jinzhu/gorm) logger implementation using [zap](https://github.com/uber-go/zap).\n\n## Usage\n\n```go\nvar debug bool // shows if we have debug enabled in our app\n\ndb, err := gorm.Open(\"postgres\", dsn)\nif err != nil {\n    panic(err)\n}\n\nif debug {\n    // By default, gorm logs only errors. If we set LogMode to true,\n    // then all queries will be logged.\n    // WARNING: if you explicitly set this to false, then even\n    // errors won't be logged.\n    db.LogMode(true)\n}\n\nlog := zap.NewExample()\n\ndb.SetLogger(gormzap.New(log, gormzap.WithLevel(zap.DebugLevel)))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypnoglow%2Fgormzap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypnoglow%2Fgormzap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypnoglow%2Fgormzap/lists"}