{"id":16656377,"url":"https://github.com/kociamber/logger_gelf","last_synced_at":"2025-07-19T16:04:31.627Z","repository":{"id":91481568,"uuid":"182385546","full_name":"Kociamber/logger_gelf","owner":"Kociamber","description":"Greylog backend for Elixir Logger.","archived":false,"fork":false,"pushed_at":"2019-04-29T12:56:15.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T11:42:18.745Z","etag":null,"topics":["elixir","greylog","logger"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/Kociamber.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":"2019-04-20T09:18:30.000Z","updated_at":"2019-04-29T12:56:16.000Z","dependencies_parsed_at":"2023-07-08T15:30:58.798Z","dependency_job_id":null,"html_url":"https://github.com/Kociamber/logger_gelf","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/Kociamber%2Flogger_gelf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kociamber%2Flogger_gelf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kociamber%2Flogger_gelf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kociamber%2Flogger_gelf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kociamber","download_url":"https://codeload.github.com/Kociamber/logger_gelf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243277488,"owners_count":20265350,"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":["elixir","greylog","logger"],"created_at":"2024-10-12T09:57:11.744Z","updated_at":"2025-03-12T18:47:41.551Z","avatar_url":"https://github.com/Kociamber.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoggerGelf [![Build Status](https://travis-ci.org/kociamber/logger_gelf.svg?branch=master)](https://travis-ci.org/kociamber/logger_gelf)\n**!!Currently WIP!!**\n\nThis application is able to generate Graylog Extended Log Format (GELF) UDP messages (TCP version coming soon)\n\n## Installation\n\nThe package can be installed\nby adding `logger_gelf` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:logger_gelf, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n## Configuration\n\nIn the config.exs, add gelf_logger as a backend / add it to backends list:\n\n```elixir\nconfig :logger,\n  backends: [:console, {LoggerGelf, :logger_gelf}]\n```\n\nYou will also have to handle mandatory configuration:\n\n```elixir\nconfig :logger, :logger_gelf,\n  application: \"my_application\",\n  greylog_hostname: \"127.0.0.1\",\n  greylog_hostport: 12201,\n```\noptional config:\n\n```elixir\nhostname: \"hostname\", #defaults to :inet.gethostname/0 result\nlevel: :warn, # defaults to lowest level (:debug)\nmetadata: [:id, :module, :record], # defaults to :all\nmetadata_formatter: {Module, :function, arity}, # custom metadata formatter - you can add any function from your module and use it for metadata formatting, skipping the option will leave metadata as it is\njson_encoder: Jason, #defaults to Jason, can be overriden by any module using  encode!/1 (ie. Poison)\ncompression: :gzip, # defaults to :gzip, :zlib or :raw are also available\n```\n\n## Usage\n\nJust add to deps, configure and use Logger as usual.\n\n## Credits\n\nCredit where credit is due! This implementation was heavily inspired by:\n[jschniper/gelf_logger](https://github.com/jschniper/gelf_logger).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkociamber%2Flogger_gelf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkociamber%2Flogger_gelf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkociamber%2Flogger_gelf/lists"}