{"id":21101550,"url":"https://github.com/appulse-projects/logging-java","last_synced_at":"2026-05-20T09:40:44.899Z","repository":{"id":144561574,"uuid":"118256376","full_name":"appulse-projects/logging-java","owner":"appulse-projects","description":"Logging dependency for Appulse Java projects","archived":false,"fork":false,"pushed_at":"2020-02-27T22:10:32.000Z","size":138,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T02:43:30.888Z","etag":null,"topics":["appulse","java","logging"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/appulse-projects.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2018-01-20T15:44:08.000Z","updated_at":"2020-02-27T22:10:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1ed4bbc-3859-41dc-95b3-f3da6fbe8d8e","html_url":"https://github.com/appulse-projects/logging-java","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appulse-projects%2Flogging-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appulse-projects%2Flogging-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appulse-projects%2Flogging-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appulse-projects%2Flogging-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appulse-projects","download_url":"https://codeload.github.com/appulse-projects/logging-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544532,"owners_count":20308170,"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":["appulse","java","logging"],"created_at":"2024-11-19T23:46:56.420Z","updated_at":"2025-12-29T09:16:17.833Z","avatar_url":"https://github.com/appulse-projects.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\n[![build_status](https://travis-ci.org/appulse-projects/logging-java.svg?branch=master)](https://travis-ci.org/appulse-projects/logging-java)\n[![maven_central](https://maven-badges.herokuapp.com/maven-central/io.appulse/logging-java/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.appulse/logging-java)\n[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\nCommon logging project for Appulse project. It contains all required dependencies as well as colorizing configurations for logging output.\n\n## Usage\n\nJust add dependency to your project.\n\n**Maven**:\n\n```xml\n\u003cdependencies\u003e\n    ...\n    \u003cdependency\u003e\n        \u003cgroupId\u003eio.appulse\u003c/groupId\u003e\n        \u003cartifactId\u003elogging-java\u003c/artifactId\u003e\n        \u003cversion\u003e1.1.3\u003c/version\u003e\n    \u003c/dependency\u003e\n    ...\n\u003c/dependencies\u003e\n```\n\n**Gradle**:\n\n```groovy\ncompile 'io.appulse:logging-java:1.1.3'\n```\n\nAnd use it as usual:\n\n```java\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\npublic class SomeClass {\n\n  Logger log = LoggerFactory.getLogger(SomeClass.class);\n\n  public void doSomeLog () {\n    log.info(\"info message\");\n    log.warn(\"warn message\");\n    log.error(\"error message\");\n  }\n}\n```\n\nor, if you use a Lombok Project:\n\n```java\nimport lombok.extern.slf4j.Slf4j;\n\n@Slf4j\npublic class SomeClass {\n\n  public void doSomeLog () {\n    log.info(\"info message\");\n    log.warn(\"warn message\");\n    log.error(\"error message\");\n  }\n}\n```\n\nWith default configuration (no `logback.xml` in classpath at all) it looks like:\n\n![override example](https://github.com/appulse-projects/logging-java/blob/master/.images/example.png?raw=true)\n\nYou also could to override default `logback`'s configuration, like an example below.\n\n**resources/logback.xml**:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\n\u003cconfiguration\u003e\n  \u003cproperty\n    name=\"CONSOLE_LOG_PATTERN\"\n    value=\"${CONSOLE_LOG_PATTERN:-%clr(${LOG_LEVEL_PATTERN:-%5p}) %clr([%25.25thread]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}\"\n  /\u003e\n\n  \u003cinclude resource=\"io/appulse/logging/logback/base.xml\"/\u003e\n\u003c/configuration\u003e\n```\n\nAnd output will be like:\n\n![override example](https://github.com/appulse-projects/logging-java/blob/master/.images/override_example.png?raw=true)\n\n## Development\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\nFor building the project you need only a [Java compiler](http://www.oracle.com/technetwork/java/javase/downloads/index.html).\n\n\u003e **IMPORTANT:** the project requires Java version starting from **8**\n\nAnd, of course, you need to clone the project from GitHub:\n\n```bash\n$\u003e git clone https://github.com/appulse-projects/logging-java\n$\u003e cd logging-java\n```\n\n### Building\n\nFor building routine automation, I am using [maven](https://maven.apache.org).\n\nTo build the project, do the following:\n\n```bash\n$\u003e mvn clean package\n...\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD SUCCESS\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time: 18.447 s\n[INFO] Finished at: 2018-01-23T18:36:20+03:00\n[INFO] Final Memory: 52M/175M\n[INFO] ------------------------------------------------------------------------\n```\n\n### Running the tests\n\nTo run the project's test, do the following:\n\n```bash\n$\u003e mvn clean test\n...\n[INFO] -------------------------------------------------------\n[INFO]  T E S T S\n[INFO] -------------------------------------------------------\n...\n[INFO]\n[INFO] Results:\n[INFO]\n[INFO] Tests run: 20, Failures: 0, Errors: 0, Skipped: 0\n[INFO]\n...\n```\n\nAlso, if you do `package` or `install` goals, the tests launch automatically.\n\n## Deploy\n\nTo deploy the project in Maven Central, use the following command:\n\n```bash\n$\u003e ./mvnw \\\n    -DskipTests \\\n    -Dmaven.test.skip=true \\\n    -Dfindbugs.skip=true \\\n    -Dpmd.skip=true \\\n    -Dcheckstyle.skip \\\n    -Dmaven.javadoc.skip=false \\\n    --settings .settings.xml \\\n    deploy -B\n```\n\nIt maybe usefull to import `gpg`'s secret keys and ownertrust from somewhere:\n\n```bash\n$\u003e echo \"${GPG_SECRET_KEYS}\" | base64 --decode | \"${GPG_EXECUTABLE}\" --batch --passphrase \"${GPG_PASSPHRASE}\" --import\n...\n$\u003e echo \"${GPG_OWNERTRUST}\" | base64 --decode | \"${GPG_EXECUTABLE}\" --batch --passphrase \"${GPG_PASSPHRASE}\" --import-ownertrust\n...\n```\n\n## Built With\n\n* [Java](http://www.oracle.com/technetwork/java/javase) - is a systems and applications programming language\n\n* [Lombok](https://projectlombok.org) - is a java library that spicing up your java\n\n* [Junit](http://junit.org/junit4/) - is a simple framework to write repeatable tests\n\n* [AssertJ](http://joel-costigliola.github.io/assertj/) - AssertJ provides a rich set of assertions, truly helpful error messages, improves test code readability\n\n* [Maven](https://maven.apache.org) - is a software project management and comprehension tool\n\n## Changelog\n\nTo see what has changed in recent versions of the project, see the [changelog](./CHANGELOG.md) file.\n\n## Contributing\n\nPlease read [contributing](./CONTRIBUTING.md) file for details on my code of conduct, and the process for submitting pull requests to me.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/appulse-projects/logging-java/tags).\n\n## Authors\n\n* **[Artem Labazin](https://github.com/xxlabaza)** - creator and the main developer\n\n## License\n\nThis project is licensed under the Apache License 2.0 License - see the [license](./LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappulse-projects%2Flogging-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappulse-projects%2Flogging-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappulse-projects%2Flogging-java/lists"}