{"id":15320419,"url":"https://github.com/szuecs/gin-glog","last_synced_at":"2026-01-12T07:36:29.920Z","repository":{"id":34549338,"uuid":"38494134","full_name":"szuecs/gin-glog","owner":"szuecs","description":"Gin middleware to use glog","archived":false,"fork":false,"pushed_at":"2018-01-07T17:24:50.000Z","size":20,"stargazers_count":62,"open_issues_count":0,"forks_count":13,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-15T02:38:30.467Z","etag":null,"topics":["gin","gin-middleware","glog","golang","logging","middleware"],"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/szuecs.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":"2015-07-03T13:31:16.000Z","updated_at":"2025-04-07T13:44:20.000Z","dependencies_parsed_at":"2022-07-16T09:06:06.572Z","dependency_job_id":null,"html_url":"https://github.com/szuecs/gin-glog","commit_stats":null,"previous_names":["zalando/gin-glog","zalando-techmonkeys/gin-glog"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/szuecs/gin-glog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgin-glog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgin-glog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgin-glog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgin-glog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szuecs","download_url":"https://codeload.github.com/szuecs/gin-glog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgin-glog/sbom","scorecard":{"id":864403,"data":{"date":"2025-08-11","repo":{"name":"github.com/szuecs/gin-glog","commit":"da59244bde84149ae00db0c2b8e62b9d899e6993"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T02:17:00.964Z","repository_id":34549338,"created_at":"2025-08-24T02:17:00.964Z","updated_at":"2025-08-24T02:17:00.964Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["gin","gin-middleware","glog","golang","logging","middleware"],"created_at":"2024-10-01T09:08:26.493Z","updated_at":"2026-01-12T07:36:29.895Z","avatar_url":"https://github.com/szuecs.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Gin-Glog\n\n[Gin](https://github.com/gin-gonic/gin) middleware for Logging with\n[glog](https://github.com/golang/glog). It is meant as drop in\nreplacement for the default logger used in Gin.\n\n[![Build Status](https://travis-ci.org/szuecs/gin-glog.svg?branch=master)](https://travis-ci.org/szuecs/gin-glog)\n[![Coverage Status](https://coveralls.io/repos/szuecs/gin-glog/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/szuecs/gin-glog?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/szuecs/gin-glog)](https://goreportcard.com/report/szuecs/gin-glog)\n[![GoDoc](https://godoc.org/github.com/szuecs/gin-glog?status.svg)](https://godoc.org/github.com/szuecs/gin-glog)\n\n## Project Context and Features\n\nWhen it comes to choosing a Go framework, there's a lot of confusion\nabout what to use. The scene is very fragmented, and detailed\ncomparisons of different frameworks are still somewhat rare. Meantime,\nhow to handle dependencies and structure projects are big topics in\nthe Go community. We've liked using Gin for its speed,\naccessibility, and usefulness in developing microservice\narchitectures. In creating Gin-Glog, we wanted to take fuller\nadvantage of [Gin](https://github.com/gin-gonic/gin)'s capabilities\nand help other devs do likewise.\n\nGin-Glog replaces the default logger of [Gin](https://github.com/gin-gonic/gin) to use\n[Glog](https://github.com/golang/glog).\n\n## How Glog is different compared to other loggers\n\nGlog is an efficient pure Go implementation of leveled logs. If you\nuse Glog, you do not use blocking calls for writing logs. A goroutine\nin the background will flush queued loglines into appropriate\nlogfiles. It provides logrotation, maintains symlinks to current files\nand creates flags to your command line interface.\n\n## Requirements\n\nGin-Glog uses the following [Go](https://golang.org/) packages as\ndependencies:\n\n- github.com/gin-gonic/gin\n- github.com/golang/glog\n\n## Installation\n\nAssuming you've installed Go and Gin, run this:\n\n    go get github.com/szuecs/gin-glog\n\n## Usage\n### Example\n\nStart your webapp to log to STDERR and /tmp:\n\n    % ./webapp -log_dir=\"/tmp\" -alsologtostderr -v=2\n\n```go\npackage main\n\nimport (\n    \"flag\"\n    \"time\"\n\n    \"github.com/golang/glog\"\n    \"github.com/szuecs/gin-glog\"\n    \"github.com/gin-gonic/gin\"\n)\n\nfunc main() {\n    flag.Parse()\n    router := gin.New()\n    router.Use(ginglog.Logger(3 * time.Second))\n    //..\n    router.Use(gin.Recovery())\n\n    glog.Warning(\"warning\")\n    glog.Error(\"err\")\n    glog.Info(\"info\")\n    glog.V(2).Infoln(\"This line will be printed if you use -v=N with N \u003e= 2.\")\n\n    router.Run(\":8080\")\n}\n```\n\nSTDERR output of the example above. Lines with prefix \"[Gin-Debug]\"\nare hardcoded output of Gin and will not appear in your logfile:\n\n    [GIN-debug] [WARNING] Running in \"debug\" mode. Switch to \"release\" mode in production.\n     - using env:   export GIN_MODE=release\n     - using code:  gin.SetMode(gin.ReleaseMode)\n\n    W0306 16:37:12.836001     367 main.go:18] warning\n    E0306 16:37:12.836335     367 main.go:19] err\n    I0306 16:37:12.836402     367 main.go:20] info\n    I0306 16:26:33.901278   32538 main.go:19] This line will be printed if you use -v=N with N \u003e= 2.\n    [GIN-debug] Listening and serving HTTP on :8080\n\n\n## Synopsis\n\nGlog will add the following flags to your binary:\n\n    -alsologtostderr\n          log to standard error as well as files\n    -log_backtrace_at value\n          when logging hits line file:N, emit a stack trace (default :0)\n    -log_dir string\n          If non-empty, write log files in this directory\n    -logtostderr\n          log to standard error instead of files\n    -stderrthreshold value\n          logs at or above this threshold go to stderr\n    -v value\n          log level for V logs\n    -vmodule value\n          comma-separated list of pattern=N settings for file-filtered logging\n\n\n## Contributing/TODO\n\nWe welcome contributions from the community; just submit a pull\nrequest. To help you get started, here are some items that we'd love\nhelp with:\n\n- Remove hardcoded logs in [Gin](https://github.com/gin-gonic/gin)\n- the code base\n\nPlease use github issues as starting point for contributions, new\nideas or bugreports.\n\n## Contact\n\n* E-Mail: team-techmonkeys@zalando.de\n* IRC on freenode: #zalando-techmonkeys\n\n## Contributors\n\nThanks to:\n\n- \u0026lt;your name\u0026gt;\n\n## License\n\nSee [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszuecs%2Fgin-glog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszuecs%2Fgin-glog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszuecs%2Fgin-glog/lists"}