{"id":36467006,"url":"https://github.com/icecanis/icelogrusenhance","last_synced_at":"2026-01-15T02:30:00.590Z","repository":{"id":257798201,"uuid":"863044718","full_name":"Icecanis/IceLogrusEnhance","owner":"Icecanis","description":"Some tools to enhance/improve Logrus' functionality","archived":false,"fork":false,"pushed_at":"2024-11-29T23:50:45.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-30T00:25:17.442Z","etag":null,"topics":["gorm","gormv2","iceinu","logger","logrus"],"latest_commit_sha":null,"homepage":"http://iceinu-project.github.io/","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/Icecanis.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":"2024-09-25T16:08:33.000Z","updated_at":"2024-11-29T23:50:48.000Z","dependencies_parsed_at":"2024-09-25T16:39:37.640Z","dependency_job_id":"e912432a-1e87-476c-8d83-7db06623d416","html_url":"https://github.com/Icecanis/IceLogrusEnhance","commit_stats":null,"previous_names":["iceinu-project/icelogrusenhance","icecanis/icelogrusenhance"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Icecanis/IceLogrusEnhance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icecanis%2FIceLogrusEnhance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icecanis%2FIceLogrusEnhance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icecanis%2FIceLogrusEnhance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icecanis%2FIceLogrusEnhance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Icecanis","download_url":"https://codeload.github.com/Icecanis/IceLogrusEnhance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icecanis%2FIceLogrusEnhance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"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":["gorm","gormv2","iceinu","logger","logrus"],"created_at":"2026-01-12T00:05:57.273Z","updated_at":"2026-01-15T02:30:00.583Z","avatar_url":"https://github.com/Icecanis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IceLogrusEnhance\n\n封装了一些用于增强/改善Logrus使用体验的小工具。\n\nEncapsulates some widgets to enhance/improve the Logrus experience.\n\n## Install 安装\n\n```shell\ngo get -u github.com/Iceinu-Project/IceLogrusEnhance\n```\n\n## Usage 用法\n\n### GORM logger Converter\n\n将Logrus的logger实例转换为gorm可用的logger实例\n\nConvert a logger instance from Logrus to a logger instance that can be used by gorm\n\n```go\nimport \"github.com/Iceinu-Project/IceLogrusEnhance\"\n\nfunc main() {\n    gormLogger := icelogrus.NewGormLogrusLogger(logrus.New())\n    gormLogger.LogMode(logger.Info)\n    db, err := gorm.Open(sqlite.Open(\"iceinu.db\"), \u0026gorm.Config{\n        Logger: gormLogger,\n    })\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficecanis%2Ficelogrusenhance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficecanis%2Ficelogrusenhance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficecanis%2Ficelogrusenhance/lists"}