Re: Fwd: Add json object to log4j2 when is JSONLayout

2017-08-12 Thread Jeus Geek
orks. > > > > With a unit test :-) > > Gary > > > > > > On 11 August 2017 at 11:03, Jeus Geek <alkhand...@gmail.com> wrote: > > > > > Hello > > > > > > Thank you for your response.. > > > > > > I don't u

Re: Fwd: Add json object to log4j2 when is JSONLayout

2017-08-11 Thread Jeus Geek
o > parse it out of that string. > > Feel free to provide a PR on GitHub if you want to add an option to allow > for a JSON object as the log message. I am not sure if it would be accepted > though as it is quite different from the current design. > > Thoughts from the community?

Fwd: Add json object to log4j2 when is JSONLayout

2017-08-11 Thread Jeus Geek
i will show JSON object as a JSON object in log4j2 when is that configed JSONLayout . JSON object: {"line_id": 12,"play_name":"Jeus"} import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger; public class Main { private static final Logger LOGGER =