{"repo":"devatherock/jul-jsonformatter","free":true,"listed":false,"github":"https://github.com/devatherock/jul-jsonformatter","clone":"git clone https://github.com/devatherock/jul-jsonformatter.git","description":"Formatter to log java.util.logging(JUL) messages as JSON, compatible with Logstash","language":"Java","stars":11,"topics":["jul","logging","json","logstash","formatter","jul-jsonformatter"],"license":"MIT","category":"dev-tools","readme_excerpt":"jul-jsonformatter Formatter to log java.util.logging(JUL) messages as JSON, compatible with Logstash Usage - Include the dependency For Maven: For Gradle: - Include any one of Gson, Jackson or json-simple libraries in classpath - Include a logging.properties file in classpath with io.github.devatherock.json.formatter.JSONFormatter as the formatter The path to the logging.properties file can also be passed as JVM arg like -Djava.util.logging.config.file=/path/to/logging.properties Change key names You can change the key names using the configuration file logging.properties The following is an example with the default key names: Use slf4j log level names Change the log level names using the same mapping as SLF4JBridgeHandler: Set the following in the logging.properties file to change the log level names: Samples Each line in the generated log will be a JSON. Sample one line message: Multi-line message: Message with exception:","default_branch":null,"files":null,"tree":[],"storefront":"/r/devatherock","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/devatherock/jul-jsonformatter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}