简体   繁体   中英

Is it possible to use the bunyan cli formatter to process logback logs?

My logback logs from a Java app are generated in json format. The node service is generating json logs via bunyan. Is it possible to use the buynan cli on the logback log stream to make the those logs human readable like the cli can for the node buynan logs? or is there a similar cli to use for logback output reformatting?

As long as your configure your logback formatter to output in the format that bunyan expects, then yes this should work. It's a good idea in fact.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM