{"id":20883115,"url":"https://github.com/trk54ylmz/logrus-boltdb-hook","last_synced_at":"2025-07-08T09:33:49.420Z","repository":{"id":77117473,"uuid":"144373086","full_name":"trK54Ylmz/logrus-boltdb-hook","owner":"trK54Ylmz","description":"BoltDB hook for logrus","archived":false,"fork":false,"pushed_at":"2019-02-12T13:46:57.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T10:29:46.000Z","etag":null,"topics":["bolt","logrus","logrus-hook"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trK54Ylmz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-11T09:37:18.000Z","updated_at":"2019-10-13T16:26:29.000Z","dependencies_parsed_at":"2024-06-20T08:18:33.250Z","dependency_job_id":"8e7d8ef6-69d7-4b84-9fe6-98cdb5228062","html_url":"https://github.com/trK54Ylmz/logrus-boltdb-hook","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trK54Ylmz%2Flogrus-boltdb-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trK54Ylmz%2Flogrus-boltdb-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trK54Ylmz%2Flogrus-boltdb-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trK54Ylmz%2Flogrus-boltdb-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trK54Ylmz","download_url":"https://codeload.github.com/trK54Ylmz/logrus-boltdb-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243260971,"owners_count":20262773,"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":["bolt","logrus","logrus-hook"],"created_at":"2024-11-18T07:34:58.588Z","updated_at":"2025-03-12T17:27:35.992Z","avatar_url":"https://github.com/trK54Ylmz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logrus BoltDB Hook\n\nWith this hook logrus saves messages in the [BoltDB](https://github.com/coreos/bbolt)\n\n## Install\n\n```bash\n$ go get github.com/trK54Ylmz/logrus-boltdb-hook\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"github.com/sirupsen/logrus\"\n\tlogrusbolt \"github.com/trK54Ylmz/logrus-boltdb-hook\"\n)\n\nfunc init() {\n\tconfig := logrusbolt.BoltHook{\n\t\tBucket:    \"test\",\n\t\tFormatter: \u0026logrus.JSONFormatter{},\n\t\tDBLoc:     \"/tmp/test.db\",\n\t}\n\t\n\thook, err := logrusbolt.NewHook(config)\n\t\n\tif err == nil {\n\t\tlogrus.AddHook(hook)\n\t} else {\n\t\tlogrus.Error(err)\n\t}\n}\n\n\nfunc main() {\n\tlogrus.Info(\"test info\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrk54ylmz%2Flogrus-boltdb-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrk54ylmz%2Flogrus-boltdb-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrk54ylmz%2Flogrus-boltdb-hook/lists"}