log4j - SLF4J summary and not line by line -


i using slf4j on web server, difficult collate lines associated request.

if have 4 log entries, this:

logger.info("entering method a. request id "+requestid); logger.info("did something. request id "+requestid); logger.info("did else. request id "+requestid); logger.info("exiting method a. request id "+requestid); 

the entries added log files, interspersed other entries of other requests.

is possible keep same log statements in same places, save them log files in 1 summary?

preferably, example, instead of having 4 lines spread on log file, text 1 entry, @ end of method a.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -