{"id":15460198,"url":"https://github.com/schollz/logger","last_synced_at":"2025-04-22T10:22:42.098Z","repository":{"id":45361937,"uuid":"185489306","full_name":"schollz/logger","owner":"schollz","description":"Simplistic, opinionated logging for Golang","archived":false,"fork":false,"pushed_at":"2021-12-17T23:15:51.000Z","size":12,"stargazers_count":24,"open_issues_count":2,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T19:06:42.392Z","etag":null,"topics":["golang","library","logging"],"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/schollz.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-05-07T22:53:54.000Z","updated_at":"2025-04-03T02:33:12.000Z","dependencies_parsed_at":"2022-07-20T21:18:20.065Z","dependency_job_id":null,"html_url":"https://github.com/schollz/logger","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Flogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Flogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Flogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Flogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schollz","download_url":"https://codeload.github.com/schollz/logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249259146,"owners_count":21239422,"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","library","logging"],"created_at":"2024-10-01T23:20:57.433Z","updated_at":"2025-04-16T16:31:29.902Z","avatar_url":"https://github.com/schollz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logger\n\n\u003cimg src=\"https://img.shields.io/badge/coverage-83%25-brightgreen.svg?style=flat-square\" alt=\"Code coverage\"\u003e\u0026nbsp;\u003ca href=\"https://travis-ci.org/schollz/logger\"\u003e\u003cimg src=\"https://img.shields.io/travis/schollz/logger.svg?style=flat-square\" alt=\"Build Status\"\u003e\u003c/a\u003e\u0026nbsp;\u003ca href=\"https://godoc.org/github.com/schollz/logger\"\u003e\u003cimg src=\"http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square\" alt=\"Go Doc\"\u003e\u003c/a\u003e \n\nSimplistic, opinionated logging for Golang\n\n- Zero dependencies\n- Global logger (with optional local logger)\n- Leveled\n- Useful defaults / i.e. zero-config\n- Simple API\n- Colors on Linux (Windows colors are horrible and unnecessary)\n- Set leveling via environmental variables `LOGGER=trace|debug|info|warn|error`\n\n```\n[trace] 20:04:57.670116 logger.go:125: trace shows granular timestamp and line info\n[debug] 20:04:57 logger.go:129: debug shows regular timestamp and line info\n[info]  2019/05/08 20:04:57 info shows timestamp\n[warn]  2019/05/08 20:04:57 warn shows timestamp\n[error] 2019/05/08 20:04:57 logger.go:141: error shows timestamp and line info\n```\n\n## Install\n\n```\ngo get github.com/schollz/logger\n```\n\n## Usage \n\n\n```golang\npackage main\n\nimport (\n\tlog \"github.com/schollz/logger\"\n)\n\nfunc main() {\n\tlog.SetLevel(\"debug\")\n\tlog.Debug(\"hello, world\")\n}\n```\n\n## Contributing\n\nPull requests are welcome. Feel free to...\n\n- Revise documentation\n- Add new features\n- Fix bugs\n- Suggest improvements\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschollz%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Flogger/lists"}