{"id":21314983,"url":"https://github.com/elbow-jason/slogger","last_synced_at":"2025-07-12T01:31:27.928Z","repository":{"id":57549276,"uuid":"78314259","full_name":"elbow-jason/slogger","owner":"elbow-jason","description":"Simple Module-Level Logging in Elixir","archived":false,"fork":false,"pushed_at":"2018-10-09T08:16:18.000Z","size":29,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T12:11:16.102Z","etag":null,"topics":["elixir","flexible","logging","slogger"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/elbow-jason.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-08T01:22:29.000Z","updated_at":"2020-01-13T21:26:05.000Z","dependencies_parsed_at":"2022-08-27T00:40:20.324Z","dependency_job_id":null,"html_url":"https://github.com/elbow-jason/slogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elbow-jason/slogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbow-jason%2Fslogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbow-jason%2Fslogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbow-jason%2Fslogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbow-jason%2Fslogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elbow-jason","download_url":"https://codeload.github.com/elbow-jason/slogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elbow-jason%2Fslogger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264923080,"owners_count":23683716,"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","flexible","logging","slogger"],"created_at":"2024-11-21T18:17:00.526Z","updated_at":"2025-07-12T01:31:27.520Z","avatar_url":"https://github.com/elbow-jason.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n    \u003cimg height=\"100\" width=\"100\" src=\"http://i.imgur.com/qybqMMx.png\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Simple Module-Level Logging\n\u003c/p\u003e\n\n# Slogger\n\n[![Build Status](https://travis-ci.org/elbow-jason/slogger.svg?branch=master)](https://travis-ci.org/elbow-jason/slogger)\n\nSlogger is a simple logger that allows flexible, and easily customizable, module-level control of logging.\n\n## Usage\n\nSimple:\n\n```elixir\ndefmodule SimpleSlogger do\n  use Slogger\n  # this module's Slogger is set to the default :info\nend\n```\n\nWith a logging level:\n\n```elixir\n  defmodule LeveledSlogger do\n    use Slogger, level: :debug\n    # you can configure slogger log level directly in the module.\n  end\n\n  defmodule MyModule do\n    def is_one?(1) do\n      # you will not see this debug log entry\n      LeveledSlogger.debug(\"it was one\")\n      true\n    end\n    def is_one?(_) do\n      # you will see this error log entry\n      LeveledSlogger.error(\"WOOP WOOP WOOP ALARM. NOT ONE.\")\n      false\n    end\n  end\n```\n\n## Installation\n\n[Slogger](https://hex.pm/packages/slogger) is available on hex.pm. To use Slogger, add `slogger` to your list of dependencies in `mix.exs`:\n\n```elixir\n\ndef deps do\n  [{:slogger, \"~\u003e 0.2.0\"}]\nend\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbow-jason%2Fslogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felbow-jason%2Fslogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felbow-jason%2Fslogger/lists"}