{"id":22287588,"url":"https://github.com/botchris/go-auditrail","last_synced_at":"2025-03-25T20:46:56.650Z","repository":{"id":258864836,"uuid":"875813436","full_name":"botchris/go-auditrail","owner":"botchris","description":"Simple audit trail implementation with interchangeable backends.","archived":false,"fork":false,"pushed_at":"2024-11-07T11:05:55.000Z","size":4681,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T18:30:50.227Z","etag":null,"topics":[],"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/botchris.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-20T22:12:15.000Z","updated_at":"2024-11-07T11:05:28.000Z","dependencies_parsed_at":"2024-12-03T17:00:50.964Z","dependency_job_id":"6b1e8da6-b7f4-4ee6-9d30-64194b1bb7f8","html_url":"https://github.com/botchris/go-auditrail","commit_stats":null,"previous_names":["botchris/go-auditrail"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botchris%2Fgo-auditrail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botchris%2Fgo-auditrail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botchris%2Fgo-auditrail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botchris%2Fgo-auditrail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botchris","download_url":"https://codeload.github.com/botchris/go-auditrail/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245543228,"owners_count":20632638,"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":[],"created_at":"2024-12-03T17:00:41.245Z","updated_at":"2025-03-25T20:46:56.610Z","avatar_url":"https://github.com/botchris.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Auditrail\n\n[![go test](https://github.com/botchris/go-auditrail/actions/workflows/go-test.yml/badge.svg)](https://github.com/botchris/go-auditrail/actions/workflows/go-test.yml)\n[![golangci-lint](https://github.com/botchris/go-auditrail/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/botchris/go-auditrail/actions/workflows/golangci-lint.yml)\n\nProvides a simple interface for logging audit events in Go with support for multiple backends such as\nfile, Elasticsearch, and more.\n\n## Installation\n\n```bash\ngo get github.com/auditrail/go-auditrail\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"os\"\n\n    \"github.com/botchris/go-auditrail\"\n)\n\nfunc main() {\n    // Create a new client\n    client := auditrail.NewFileLogger(os.Stdout)\n\n    // Log a message\n    entry := auditrail.NewEntry(\"john\", \"order.deleted\", \"ordersService\")\n\n    if err := client.Log(context.TODO(), entry); err != nil {\n        fmt.Println(err.Error())\n    }\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotchris%2Fgo-auditrail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotchris%2Fgo-auditrail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotchris%2Fgo-auditrail/lists"}