{"id":18562403,"url":"https://github.com/born2snipe/maven-custom-logging","last_synced_at":"2025-07-05T09:05:35.395Z","repository":{"id":7982597,"uuid":"9386489","full_name":"born2snipe/maven-custom-logging","owner":"born2snipe","description":"attempt to customize/modify Maven 3 logging","archived":false,"fork":false,"pushed_at":"2015-07-10T01:13:19.000Z","size":468,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T18:29:48.758Z","etag":null,"topics":["java","logging","maven"],"latest_commit_sha":null,"homepage":null,"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/born2snipe.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":"2013-04-12T04:20:37.000Z","updated_at":"2017-07-07T03:22:27.000Z","dependencies_parsed_at":"2022-09-02T14:31:41.431Z","dependency_job_id":null,"html_url":"https://github.com/born2snipe/maven-custom-logging","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/born2snipe/maven-custom-logging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fmaven-custom-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fmaven-custom-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fmaven-custom-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fmaven-custom-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/born2snipe","download_url":"https://codeload.github.com/born2snipe/maven-custom-logging/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fmaven-custom-logging/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263715328,"owners_count":23500242,"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","logging","maven"],"created_at":"2024-11-06T22:09:30.150Z","updated_at":"2025-07-05T09:05:35.378Z","avatar_url":"https://github.com/born2snipe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maven Custom Logging \r\n\r\nThis is a maven extension that allows some customization of the maven console output.\r\n\r\n![sampleoutput](http://i.imgur.com/yYa5Ocv.gif)\r\n\r\n## Features\r\n- Remove the log threshold from the output (ie. `[INFO]`)\r\n- Prepend a timestamp to each log line\r\n- Coloring of whole lines or segments of lines using the [JANSI](https://github.com/fusesource/jansi) library\r\n- Alter text output or remove output\r\n\r\n## Setup\r\n- Download the [3.0 or 3.1][4] JAR to your `$MAVEN_HOME/lib/ext` directory\r\n- Run any maven build you would like and you should see some colors!\r\n\r\n## How to use my own configuration?\r\nThere are 4 different ways for you to supply a custom configuration file:\r\n- supply this system property `custom.logging.configuration` at the commandline, with a value pointing to your config file\r\n- supply the environment variable `MAVEN_CUSTOM_LOGGING_CONFIG` and put the path to your config file as it's value\r\n- put config file `maven-custom-logging.yml` in your `$MAVEN_HOME/conf` directory\r\n- put config file `maven-custom-logging.yml` in your `$HOME` directory\r\n\r\n#### Note: [Sample Configuration File][1]\r\n\r\n## FAQ\r\n- **Lines I am attempting to color are not being colored?**\r\n  - This can be caused by your regex pattern being incorrect\r\n  - This can be caused by a maven plugin that is running in your build decided to not use Maven's Logger\r\n  - This can be caused by a maven plugin that has switched out the `System.out` to a different instance *(ie. maven-surefire-plugin)*\r\n  - This can be caused by the output being sent to a [file](https://github.com/fusesource/jansi/blob/master/jansi/src/main/java/org/fusesource/jansi/AnsiConsole.java#L66)\r\n\r\n- **What colors/options are available for the `render` configuration?**\r\n  - Colors and Options available are [here][2]\r\n  - Examples of render syntax is [here][3]\r\n\r\n- **How can I see phases of the filtering of the log lines?**\r\n  - If you specify the `-Dcustom.logging.debug` switch at the commandline this will put custom logging into debug mode and A LOT of information will be printed.\r\n  - This will show the before and after of each log line we filtered\r\n\r\n- **How can I temporary shutoff the log filtering?**\r\n  - Just supply `custom.logging.off` system property and you should see all the original maven output\r\n\r\n## Maven versions Tested and working\r\n  - [x] 3.0.1\r\n  - [x] 3.0.2\r\n  - [x] 3.0.3\r\n  - [x] 3.0.4\r\n  - [x] 3.0.5\r\n  - [X] 3.1.0\r\n  - [X] 3.1.1\r\n  - [X] 3.2.1\r\n  - [X] 3.2.2\r\n  - [X] 3.2.3\r\n  - [X] 3.3.1\r\n  - [X] 3.3.3\r\n\r\n\r\n  [1]: https://github.com/born2snipe/maven-custom-logging/blob/master/custom-logging/src/main/resources/config/default.yml \"sample\"\r\n  [2]: https://github.com/fusesource/jansi/blob/master/jansi/src/main/java/org/fusesource/jansi/AnsiRenderer.java#L127 \"colors\"\r\n  [3]: https://github.com/fusesource/jansi/blob/master/jansi/src/test/java/org/fusesource/jansi/AnsiRendererTest.java \"syntax\"\r\n  [4]: https://github.com/born2snipe/maven-custom-logging/releases/tag/v0.1 \"release\"\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborn2snipe%2Fmaven-custom-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborn2snipe%2Fmaven-custom-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborn2snipe%2Fmaven-custom-logging/lists"}