{"id":34188024,"url":"https://github.com/zhl11b/logrus-hook-caller","last_synced_at":"2026-03-09T23:35:27.805Z","repository":{"id":57542764,"uuid":"66142187","full_name":"zhl11b/logrus-hook-caller","owner":"zhl11b","description":"hook for logrus make it display linenum","archived":false,"fork":false,"pushed_at":"2018-03-06T06:14:52.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-18T14:56:21.510Z","etag":null,"topics":["hooks","logrus"],"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/zhl11b.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":"2016-08-20T10:55:57.000Z","updated_at":"2017-12-21T18:05:51.000Z","dependencies_parsed_at":"2022-09-26T18:31:17.289Z","dependency_job_id":null,"html_url":"https://github.com/zhl11b/logrus-hook-caller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhl11b/logrus-hook-caller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhl11b%2Flogrus-hook-caller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhl11b%2Flogrus-hook-caller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhl11b%2Flogrus-hook-caller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhl11b%2Flogrus-hook-caller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhl11b","download_url":"https://codeload.github.com/zhl11b/logrus-hook-caller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhl11b%2Flogrus-hook-caller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30316772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["hooks","logrus"],"created_at":"2025-12-15T15:24:57.312Z","updated_at":"2026-03-09T23:35:27.797Z","avatar_url":"https://github.com/zhl11b.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logrus-hook-caller\n[![Go Report Card](https://goreportcard.com/badge/github.com/zhl11b/logrus-hook-caller)](https://goreportcard.com/report/github.com/zhl11b/logrus-hook-caller)\n\nmake logrus display linenum and filename no matter use logrus.Debugf(\"xx\") or logrus.Withfield(\"xx\",\"xx\").Debugf(\"xx\")\n\ncation!! because Debugf or Debugln's call deepth are diferent with Debug.so you have to use Debugf instead Debug, then you can get right caller.\n\u003cbr/\u003e注意！！因为Debuf,Debugln和Debug的调用深度不一样。所以需要使用Debugf取代Debug，那么就可以正确的显示行了。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhl11b%2Flogrus-hook-caller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhl11b%2Flogrus-hook-caller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhl11b%2Flogrus-hook-caller/lists"}