{"id":29825558,"url":"https://github.com/adampresley/logrusviewer","last_synced_at":"2026-04-16T00:31:29.499Z","repository":{"id":57508768,"uuid":"119636682","full_name":"adampresley/logrusviewer","owner":"adampresley","description":"A tool to view logs generated by Logrus (the excellent Golang logger library)","archived":false,"fork":false,"pushed_at":"2018-02-01T19:56:43.000Z","size":471,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-06T10:13:20.299Z","etag":null,"topics":["golang","logging","logrus","viewer"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/adampresley.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":"2018-01-31T04:55:00.000Z","updated_at":"2022-08-27T07:54:17.000Z","dependencies_parsed_at":"2022-08-30T01:31:19.486Z","dependency_job_id":null,"html_url":"https://github.com/adampresley/logrusviewer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adampresley/logrusviewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampresley%2Flogrusviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampresley%2Flogrusviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampresley%2Flogrusviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampresley%2Flogrusviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adampresley","download_url":"https://codeload.github.com/adampresley/logrusviewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adampresley%2Flogrusviewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31866230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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":["golang","logging","logrus","viewer"],"created_at":"2025-07-29T04:10:39.191Z","updated_at":"2026-04-16T00:31:29.200Z","avatar_url":"https://github.com/adampresley.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logrus Viewer\n\nA tool to view logs generated by Logrus (the excellent Golang logger library).\n\n## Description\n\n[Logrus](https://github.com/sirupsen/logrus) is an excellent logging library for Google's Go language. It offers the ability to log entries in JSON format. It also provides the ability to attach additional fields and data to any given log entry. This viewer can read those logs and display them in a more readable format. Note that the viewer assumes at least three keys are present: **level**, **time**, and **msg**. As an example here is a JSON log file that Logrus Viewer can parse.\n\n```\n{\"level\":\"info\",\"msg\":\"leader-tree cache miss\",\"siteID\":1,\"time\":\"2018-02-01T00:51:21-06:00\",\"who\":\"LeaderService\"}\n{\"level\":\"info\",\"msg\":\"destination-tree cache miss\",\"siteID\":1,\"time\":\"2018-02-01T00:51:21-06:00\",\"who\":\"APIService\"}\n{\"level\":\"info\",\"msg\":\"destination-collection cache miss\",\"siteID\":1,\"time\":\"2018-02-01T00:51:21-06:00\",\"who\":\"APIService\"}\n{\"level\":\"info\",\"msg\":\"destination-tree cache miss\",\"siteID\":1,\"time\":\"2018-02-01T00:51:23-06:00\",\"who\":\"APIService\"}\n{\"level\":\"error\",\"msg\":\"Cannot find departure ({AB2B74D5-6EC1-E611-892F-000C29B44DA4}) for departure 17 in GetCollectionFromDatabase\",\"siteID\":1,\"time\":\"2018-02-01T00:51:23-06:00\",\"who\":\"DepartureService\"}\n{\"level\":\"error\",\"msg\":\"Error getting destination information for departure {ABCF582C-4DB6-E511-9AD6-0050569D1C13} - Destination '{AB2E847F-B7B3-E411-B8A5-0050569D1C13}' not found\",\"siteID\":1,\"time\":\"2018-02-01T00:51:23-06:00\",\"who\":\"DepartureService\"}\n{\"level\":\"error\",\"msg\":\"Error getting destination information for departure {ABF07271-AFC0-E611-892F-000C29B44DA4} - Destination '{AB2E847F-B7B3-E411-B8A5-0050569D1C13}' not found\",\"siteID\":1,\"time\":\"2018-02-01T00:51:23-06:00\",\"who\":\"DepartureService\"}\n{\"level\":\"error\",\"msg\":\"Cannot find Peak15Departure ({ABE376D1-7DE2-E611-B777-0050569D1C13}) for departure 85 in GetCollectionFromDatabase\",\"siteID\":1,\"time\":\"2018-02-01T00:51:24-06:00\",\"who\":\"DepartureService\"}\n{\"level\":\"error\",\"msg\":\"Cannot find Peak15Departure ({ABCF5AFE-0E13-E711-B777-0050569D1C13}) for departure 98 in GetCollectionFromDatabase\",\"siteID\":1,\"time\":\"2018-02-01T00:51:25-06:00\",\"who\":\"DepartureService\"}\n```\n\nGiven the above sample here is what that would look like in Logrus Viewer.\n\n![Viewer Screenshot](readme-assets/viewer.png)\n\n## Compiling\n\nLogrus Viewer is written in Go 1.9.x. It also makes use of the tool [Esc](https://github.com/mjibson/esc) for embedding static assets, so make sure you have that installed too. With all the tools installed clone this repository to `$GOPATH/src/github.com/adampresley`. Then in the **logrusviewer** directory that is created run the following.\n\n```\n$ go generate\n$ go run ./*.go\n```\n\nOnce it is running you should be able to open `http://localhost:8080` in your browser.\n\n## Command Line Flags\n\n* **host** - Address and port to bind to. Defaults to `0.0.0.0:8080`\n* **loglevel** - What level to log entries. Defaults to `info`. Valid values are `error`, `info`, and `debug`\n\n## License\n\nMIT License\n\nCopyright (c) 2018 Adam Presley\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadampresley%2Flogrusviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadampresley%2Flogrusviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadampresley%2Flogrusviewer/lists"}