{"id":18715522,"url":"https://github.com/rawnly/logre-client-go","last_synced_at":"2025-11-10T06:30:14.300Z","repository":{"id":78841107,"uuid":"256483837","full_name":"rawnly/logre-client-go","owner":"rawnly","description":"Go client for Logre","archived":false,"fork":false,"pushed_at":"2021-10-21T10:04:59.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T09:43:25.396Z","etag":null,"topics":["api","client","golang","http","log","logre"],"latest_commit_sha":null,"homepage":"https://logre.io","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/rawnly.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":"2020-04-17T11:26:08.000Z","updated_at":"2021-10-21T10:05:02.000Z","dependencies_parsed_at":"2023-04-22T21:15:37.168Z","dependency_job_id":null,"html_url":"https://github.com/rawnly/logre-client-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Flogre-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Flogre-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Flogre-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawnly%2Flogre-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rawnly","download_url":"https://codeload.github.com/rawnly/logre-client-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239577748,"owners_count":19662280,"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":["api","client","golang","http","log","logre"],"created_at":"2024-11-07T13:09:07.430Z","updated_at":"2025-11-10T06:30:13.812Z","avatar_url":"https://github.com/rawnly.png","language":"Go","readme":"# Logre Go Client\n\u003e [Logre][logre] client written in GoLang\n\nThis *logre* package provides a fast way to push your logs into [logre.io][logre]\n\n\u003e Are you a Java developer? Check out the [Java driver](https://github.com/Rawnly/logre-client-java) for Logre.IO\n\n## Installation\n```shell script\n  go get -u github.com/rawnly/logre-client-go\n``` \n\n## Getting Started\nThe easiest way to log is with the `Message` or `Log` method.\n\n```go\npackage main\n    \nimport \"github.com/rawnly/logre-client-go\"\n\nfunc main() {\n    type Payload struct {\n        ID uint `json:\"id,omitempty\"`\n        Name string `json:\"name,omitempty\"`\n    }\n\n    // initialize the client with your box_id\n    logre.Init(\"\u003cYour box_id\u003e\")\n\n    // Explicity ignoring the error\n    _, _ = logre.Message(\"Hello World!\")\n    \n    // You can also log a JSON\n    _, _ = logre.Log(Payload{ ID: 1, Name: \"Rawnly\" })\n}\n```\n\nSince this library is just a wrapper for an API call, we'll need to handle http-errors. \n\n## Log with Severity\nYou can also log with `severity` via `Info`, `Debug`, `Warning`, `Error` and `Fatal` methods \n \n```go\npackage main\n    \nimport \"github.com/rawnly/go-logre\"\n\nfunc main() {\n    type Payload struct {\n        ID uint `json:\"id,omitempty\"`\n        Name string `json:\"name,omitempty\"`\n    }\n\n    // initialize the client with your box_id\n    logre.Init(\"\u003cYour box_id\u003e\")\n\n    // Explicity ignoring the error\n    _, _ = logre.DebugMessage(\"Hello at Debug level\")\n    \n    // You can also log a JSON\n    _, _ = logre.Debug(Payload{ ID: 1, Name: \"Rawnly\" })\n}\n```\n [logre]: https://logre.io\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawnly%2Flogre-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frawnly%2Flogre-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawnly%2Flogre-client-go/lists"}