{"id":37213998,"url":"https://github.com/qclaogui/lg","last_synced_at":"2026-01-15T00:44:33.091Z","repository":{"id":57486932,"uuid":"200259607","full_name":"qclaogui/lg","owner":"qclaogui","description":"Project logger packaging for zap","archived":false,"fork":false,"pushed_at":"2019-08-11T12:52:32.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T04:01:54.966Z","etag":null,"topics":["golang","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/qclaogui.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":"2019-08-02T15:39:11.000Z","updated_at":"2024-06-20T04:01:54.966Z","dependencies_parsed_at":"2022-09-01T23:01:25.322Z","dependency_job_id":null,"html_url":"https://github.com/qclaogui/lg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/qclaogui/lg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qclaogui%2Flg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qclaogui%2Flg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qclaogui%2Flg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qclaogui%2Flg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qclaogui","download_url":"https://codeload.github.com/qclaogui/lg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qclaogui%2Flg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","logging","zap"],"created_at":"2026-01-15T00:44:32.452Z","updated_at":"2026-01-15T00:44:33.068Z","avatar_url":"https://github.com/qclaogui.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003elg\u003c/h1\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://travis-ci.org/qclaogui/lg\"\u003e\u003cimg src=\"https://travis-ci.org/qclaogui/lg.svg?branch=master\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/github.com/qclaogui/lg\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/qclaogui/lg?v=1\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://godoc.org/github.com/qclaogui/lg\"\u003e\u003cimg src=\"https://godoc.org/github.com/qclaogui/lg?status.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/qclaogui/lg/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/qclaogui/lg.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nProject logger packaging for [github.com/uber-go/zap](https://github.com/uber-go/zap)\n\n## Getting Started\n\nSuitable for project log in the container\n\n\n### Installation\n\n`go get -u github.com/qclaogui/lg`\n\n\n### Usage [Run in Playground](https://play.golang.org/p/_q67O0B0Dd5)\n\n\n\n```go\npackage main\n\nimport (\n\t\"github.com/qclaogui/lg\"\n)\n\nfunc main() {\n\t//lg.TimeFormat = time.RFC3339Nano\n\n\t// lvl - global log level: Debug(-1), Info(0), Warn(1), Error(2), DPanic(3), Panic(4), Fatal(5)\n\t_ = lg.Init(-1, \"demo-project\")\n\n\tlg.APPLog.Info(\"Happy Goding!\")\n}\n// Output: {\"level\":\"info\",\"ts\":1564834577.710078,\"msg\":\"Happy Goding!\",\"info\":{\"project\":\"demo-project\",\"hostname\":\"qclaogui.local\"}}\n```\n\n## Versioning\n\nUsing [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/qclaogui/lg/tags). \n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqclaogui%2Flg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqclaogui%2Flg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqclaogui%2Flg/lists"}