{"id":28482524,"url":"https://github.com/jcabi/jcabi-log","last_synced_at":"2025-06-27T22:31:21.758Z","repository":{"id":10177081,"uuid":"12262782","full_name":"jcabi/jcabi-log","owner":"jcabi","description":"Static Wrapper of SLF4J easing you from the necessity to create static LOGGER instances in each Java class","archived":false,"fork":false,"pushed_at":"2025-06-07T10:02:34.000Z","size":4871,"stargazers_count":61,"open_issues_count":27,"forks_count":46,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-07T11:18:23.515Z","etag":null,"topics":["java","logger","logging","slf4j"],"latest_commit_sha":null,"homepage":"https://log.jcabi.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcabi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-08-21T06:17:47.000Z","updated_at":"2025-05-19T09:42:20.000Z","dependencies_parsed_at":"2024-01-24T23:46:17.046Z","dependency_job_id":"7c416ed7-ddcb-4be2-ae92-9de81d574b26","html_url":"https://github.com/jcabi/jcabi-log","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/jcabi/jcabi-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcabi%2Fjcabi-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcabi%2Fjcabi-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcabi%2Fjcabi-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcabi%2Fjcabi-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcabi","download_url":"https://codeload.github.com/jcabi/jcabi-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcabi%2Fjcabi-log/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262343724,"owners_count":23296381,"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":["java","logger","logging","slf4j"],"created_at":"2025-06-07T20:37:50.217Z","updated_at":"2025-06-27T22:31:21.749Z","avatar_url":"https://github.com/jcabi.png","language":"Java","funding_links":[],"categories":["日志库"],"sub_categories":[],"readme":"\u003cimg alt=\"logo\" src=\"https://www.jcabi.com/logo-square.svg\" width=\"64px\" height=\"64px\" /\u003e\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](https://www.rultor.com/b/jcabi/jcabi-log)](https://www.rultor.com/p/jcabi/jcabi-log)\n[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)\n\n[![mvn](https://github.com/jcabi/jcabi-log/actions/workflows/mvn.yml/badge.svg)](https://github.com/jcabi/jcabi-log/actions/workflows/mvn.yml)\n[![PDD status](https://www.0pdd.com/svg?name=jcabi/jcabi-log)](https://www.0pdd.com/p?name=jcabi/jcabi-log)\n[![codecov](https://codecov.io/gh/jcabi/jcabi-log/branch/master/graph/badge.svg)](https://codecov.io/gh/jcabi/jcabi-log)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.jcabi/jcabi-log/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.jcabi/jcabi-log)\n[![Javadoc](https://javadoc.io/badge/com.jcabi/jcabi-log.svg)](https://www.javadoc.io/doc/com.jcabi/jcabi-log)\n[![Hits-of-Code](https://hitsofcode.com/github/jcabi/jcabi-log)](https://hitsofcode.com/view/github/jcabi/jcabi-log)\n\nMore details are here: [log.jcabi.com](https://log.jcabi.com/index.html)\n\nRead this blog post:\n[_Get Rid of Java Static Loggers_](https://www.yegor256.com/2014/05/23/avoid-java-static-logger.html)\n\n`Logger` is a convenient static wrapper of\n[slf4j](http://www.slf4j.org/)\n(don't forget to include one of\n[SLF4J Bindings](http://www.slf4j.org/manual.html#binding)\ninto the project):\n\n```java\nimport com.jcabi.log.Logger;\nclass Foo {\n  void bar(int value) {\n    Logger.debug(this, \"method #bar(%d) was called\", value);\n  }\n}\n```\n\nBesides standard `%s` placeholders inside the format string, you can use\nother custom ones, which help formatting common values faster:\n\n* `%[file]s` --- absolute file name ➜ file name relative to current directory\n* `%[text]s` --- any string ➜ pretty looking text, short enough, and escaped\n* `%[exception]s` --- `Exception` ➜ stacktrace\n* `%[list]s` --- `Iterable` ➜ pretty formatted list, in one line\n* `%[size]s` --- size in bytes ➜ Kb, Mb, Gb, Tb, and so on\n* `%[ms]s` --- milliseconds ➜ ms, sec, min, hours, etc.\n* `%[nano]s` --- nanoseconds ➜ µs, ms, sec, min, hours, etc.\n* `%[type]s` --- `Class\u003c?\u003e` ➜ name of it\n* `%[secret]s` --- any string ➜ stars\n* `%[dom]s` --- `org.w3c.domDocument` ➜ pretty printed/formatted XML\n\nYou are welcome to\n[suggest](https://github.com/jcabi/jcabi-log/blob/master/src/main/java/com/jcabi/log/DecorsManager.java)\nyour own \"decors\".\n\n## How to contribute?\n\nFork the repository, make changes, submit a pull request.\nWe promise to review your changes same day and apply to\nthe `master` branch, if they look correct.\n\nPlease run Maven build before submitting a pull request:\n\n```bash\nmvn clean install -Pqulice\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcabi%2Fjcabi-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcabi%2Fjcabi-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcabi%2Fjcabi-log/lists"}