{"id":16381171,"url":"https://github.com/epergo/simplelogger","last_synced_at":"2026-06-19T04:32:10.483Z","repository":{"id":82500515,"uuid":"132333398","full_name":"epergo/simplelogger","owner":"epergo","description":"Simple Request logger for Amber Framework","archived":false,"fork":false,"pushed_at":"2018-05-06T11:51:43.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-30T03:37:24.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/epergo.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":"2018-05-06T11:47:37.000Z","updated_at":"2024-02-18T15:28:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"84e9dbf4-9d14-4942-a10d-2f116300bc78","html_url":"https://github.com/epergo/simplelogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/epergo/simplelogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epergo%2Fsimplelogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epergo%2Fsimplelogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epergo%2Fsimplelogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epergo%2Fsimplelogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epergo","download_url":"https://codeload.github.com/epergo/simplelogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epergo%2Fsimplelogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34517748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-11T03:53:33.635Z","updated_at":"2026-06-19T04:32:10.458Z","avatar_url":"https://github.com/epergo.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Logger\n\n\u003e I am a simple man, I like simple loggers - Me\n\nRequest logger for [Amber Framework](https://github.com/amberframework/amber)\n\n* Easier to parse, ideal for log aggregators\n* Add an UUID to each request\n* Smaller logs\n\nFrom this:\n\n```\n01:37:43 Request    | Started 2018-05-06 13:37:43 +02:00\n01:37:43 Request    | Status: 200  Method: GET  Pipeline: web Format: html\n01:37:43 Request    | Requested Url: /\n01:37:43 Request    | Time Elapsed: 263.0µs\n01:37:43 Headers    | Host: [\"localhost:3000\"]\n01:37:43 Headers    | User-Agent: [\"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0\"]\n01:37:43 Headers    | Accept: [\"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\"]\n01:37:43 Headers    | Accept-Language: [\"en-US,en;q=0.5\"]\n01:37:43 Headers    | Accept-Encoding: [\"gzip, deflate\"]\n01:37:43 Headers    | Cookie: [\"amber.session=eyJfZmxhc2giOiJ7fSJ9--EopkYJ%2B7PiP81%2Fp9tb9OUUyRor8%3D\"]\n01:37:43 Headers    | DNT: [\"1\"]\n01:37:43 Headers    | Connection: [\"keep-alive\"]\n01:37:43 Headers    | Upgrade-Insecure-Requests: [\"1\"]\n01:37:43 Headers    | Cache-Control: [\"max-age=0\"]\n01:37:43 Cookies    | amber.session: #\u003cHTTP::Cookie:0x557fa0243840\u003e\n01:37:43 Session    | _flash: {}\n```\n\nTo this:\n\n```\n01:34:21 ae729e96-22f1-480e-a4b1-ca2b94f3abf4 | (INFO)  method=GET path=/ format=html pipeline=web controller=HomeController action=index status=200 duration=350.0µs\n```\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  simplelogger:\n    github: epergo/simplelogger\n```\n\n## Usage\n\nRequire in you `application.cr` file:\n\n```crystal\nrequire \"simplelogger\"\n```\n\nAdd it to your pipeline:\n\n\n```crystal\npipeline :web do\n  . . .\n\n  plug SimpleLogger.new\n\n  . . .\nend\n```\n\nOr use it only in production environment:\n\n```crystal\npipeline :web do\n  . . .\n\n  plug Amber.env.production? ? SimpleLogger.new : Amber::Pipe::Logger.new\n\n  . . .\nend\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/epergo/simplelogger/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepergo%2Fsimplelogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepergo%2Fsimplelogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepergo%2Fsimplelogger/lists"}