{"id":37024292,"url":"https://github.com/sjmyuan/jlogger","last_synced_at":"2026-01-14T02:56:08.750Z","repository":{"id":45199099,"uuid":"419328499","full_name":"sjmyuan/jlogger","owner":"sjmyuan","description":"A Scala library to print log in JSON format","archived":false,"fork":false,"pushed_at":"2022-01-01T09:14:27.000Z","size":153,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T10:27:29.717Z","etag":null,"topics":["json","log","logger","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/sjmyuan.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":"2021-10-20T12:52:05.000Z","updated_at":"2022-01-01T09:14:24.000Z","dependencies_parsed_at":"2022-09-18T04:21:31.447Z","dependency_job_id":null,"html_url":"https://github.com/sjmyuan/jlogger","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sjmyuan/jlogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmyuan%2Fjlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmyuan%2Fjlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmyuan%2Fjlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmyuan%2Fjlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjmyuan","download_url":"https://codeload.github.com/sjmyuan/jlogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmyuan%2Fjlogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["json","log","logger","scala"],"created_at":"2026-01-14T02:56:08.085Z","updated_at":"2026-01-14T02:56:08.737Z","avatar_url":"https://github.com/sjmyuan.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## jlogger\n\nThis is a Scala library to print the log in JSON format\n\n### Installation\n\nAdd the following dependency to you `build.sbt`\n\n```scala\n  libraryDependencies += \"io.github.sjmyuan\" %% \"jlogger\" % \"0.0.2\",\n```\n\n### UML\n\n![](./docs/classes.png)\n\n### Example\n\n#### Print log with self4j\n\n```scala\nimport io.github.sjmyuan.jlogger.SimpleJsonLogger\nimport cats.effect.IO\nimport cats.effect.IOApp\nimport org.slf4j.LoggerFactory\n\nobject App extends IOApp {\n    val logger = new Self4jJsonLogger[IO](LoggerFactory.getLogger(getClass()))\n\n    val program = for {\n      _ \u003c-logger.warn(\"This is a json logger\")\n      _ \u003c-logger.error(\"This is a json logger\")\n      _ \u003c-logger.info(\"This is a json logger\")\n    } yield()\n\n    program.unsafeRunSync()\n}\n```\n\n#### Print log with println\n\n```scala\nimport io.github.sjmyuan.jlogger.SimpleJsonLogger\nimport cats.effect.IO\nimport cats.effect.IOApp\n\nobject App extends IOApp {\n    val logger = new SimpleJsonLogger[IO]()\n\n    val program = for {\n      _ \u003c-logger.warn(\"This is a json logger\")\n      _ \u003c-logger.error(\"This is a json logger\")\n      _ \u003c-logger.info(\"This is a json logger\")\n    } yield()\n\n    program.unsafeRunSync()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjmyuan%2Fjlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjmyuan%2Fjlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjmyuan%2Fjlogger/lists"}