{"id":23838057,"url":"https://github.com/kobil-systems/lager_iowrite_formatter","last_synced_at":"2025-09-07T14:32:58.808Z","repository":{"id":57514887,"uuid":"233669839","full_name":"kobil-systems/lager_iowrite_formatter","owner":"kobil-systems","description":"Lager formatter that adds support for custom format specifiers to the metadata. ","archived":false,"fork":false,"pushed_at":"2020-11-12T22:33:18.000Z","size":18,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-30T18:47:03.280Z","etag":null,"topics":["erlang","lager","logging"],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/kobil-systems.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":"2020-01-13T18:56:29.000Z","updated_at":"2020-11-12T22:33:20.000Z","dependencies_parsed_at":"2022-09-26T18:00:55.278Z","dependency_job_id":null,"html_url":"https://github.com/kobil-systems/lager_iowrite_formatter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobil-systems%2Flager_iowrite_formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobil-systems%2Flager_iowrite_formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobil-systems%2Flager_iowrite_formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobil-systems%2Flager_iowrite_formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kobil-systems","download_url":"https://codeload.github.com/kobil-systems/lager_iowrite_formatter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232143463,"owners_count":18478575,"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":["erlang","lager","logging"],"created_at":"2025-01-02T16:25:45.553Z","updated_at":"2025-01-02T16:25:46.012Z","avatar_url":"https://github.com/kobil-systems.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"lager_iowrite_formatter\n=====\n\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/kobil-systems/lager_iowrite_formatter/Erlang%20CI?style=flat-square)\n\nLager formatter that adds support for custom format specifiers to the metadata.\nIt is especially useful when you want to format numbers in different format.\n\nUsage\n-----\n\nAdd to `rebar.config`:\n\n```erlang\n{deps, [lager_iowrite_formatter]}.\n```\n\nAnd then in `sys.config` you can use:\n\n```erlang\n{lager, [\n  {handlers, [\n    {lager_file_backend, [{file, \"error.log\"}, {level, error}, {formatter, lager_iowrite_formatter},\n      {formatter_config, [date, \" \", time, {\"~.16B\", trace_id, \"undefined\"},\" [\",severity,\"] \",pid, \" \", message, \"\\n\"]}]}\n  ]}\n]}.\n```\n\nThat will print `trace_id` metadata attribute using hexadecimal format if value\nis present.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobil-systems%2Flager_iowrite_formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkobil-systems%2Flager_iowrite_formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobil-systems%2Flager_iowrite_formatter/lists"}