{"id":13741321,"url":"https://github.com/defgenx/glog","last_synced_at":"2026-03-11T07:34:01.336Z","repository":{"id":63759646,"uuid":"570121175","full_name":"defgenx/glog","owner":"defgenx","description":"A Gleam implementation of Erlang logger inspired from Logrus","archived":false,"fork":false,"pushed_at":"2024-04-12T15:03:44.000Z","size":81,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-19T08:41:38.407Z","etag":null,"topics":["erlang-logger","gleam","gleam-lang","gleam-language","log","logger","logging"],"latest_commit_sha":null,"homepage":"","language":"Gleam","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defgenx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-11-24T11:40:44.000Z","updated_at":"2025-11-10T03:04:09.000Z","dependencies_parsed_at":"2024-04-19T16:17:34.042Z","dependency_job_id":null,"html_url":"https://github.com/defgenx/glog","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":"0.23076923076923073","last_synced_commit":"a474dad0edf5114fe1528b80da4b520e6946142d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/defgenx/glog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defgenx%2Fglog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defgenx%2Fglog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defgenx%2Fglog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defgenx%2Fglog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defgenx","download_url":"https://codeload.github.com/defgenx/glog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defgenx%2Fglog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":["erlang-logger","gleam","gleam-lang","gleam-language","log","logger","logging"],"created_at":"2024-08-03T04:00:57.850Z","updated_at":"2026-03-11T07:34:01.310Z","avatar_url":"https://github.com/defgenx.png","language":"Gleam","funding_links":[],"categories":["Packages"],"sub_categories":["Logging and Monitoring"],"readme":"# glog\n\n[![Package Version](https://img.shields.io/hexpm/v/glog)](https://hex.pm/packages/glog)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glog/)\n\nA Gleam implementation of Erlang logger inspired from [Logrus](https://github.com/sirupsen/logrus) API.\n\n![](assets/small_glog_logo.png)\n\n## Task List\n\n- [x] Write documentation\n- [x] Add unit tests\n- [x] Improve API with `add_error`, `add_result` `add_option`...\n- [ ] Add an API to configure the logger (custom configuration file)\n\n## Usage\n\nThe Erlang logger is asynchronous by default, please read the [logger chapter](https://www.erlang.org/doc/apps/kernel/logger_chapter.html#message-queue-length)\n\n```gleam\nimport glog\nimport glog/field\nimport glog/arg\nimport glog/level\n\n\npub fn main() {\n  let logger = glog.new()\n  glog.set_primary_log_level(level.All)\n  glog.set_default_config()\n\n  logger\n  |\u003e glog.add(\"foo\", \"bar\")\n  |\u003e glog.add_field(field.new(\"woo\", \"zoo\"))\n  |\u003e glog.infof(\"I'll be ~p\", [arg.new(\"back\")])\n}\n```\n\n## Things to know\n\n* Gleam do not support configuration files at the moment. To load a custom Erlang config file use the following\n  command: `ERL_FLAGS='-config \u003cconfig_file\u003e' gleam run`\n    * Please read the [logger documentation](https://www.erlang.org/doc/man/logger.html) to know more about\n      configuration files\n\n## Quick start\n\n```sh\ngleam run   # Run the project\ngleam test  # Run the tests\ngleam shell # Run an Erlang shell\n```\n\n## Installation\n\nThis package can be added to your Gleam project:\n\n```sh\ngleam add glog\n```\n\nand its documentation can be found at \u003chttps://hexdocs.pm/glog\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefgenx%2Fglog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefgenx%2Fglog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefgenx%2Fglog/lists"}