Re: Logging of logs only on demand

2018-02-05 Thread Matt Sicker
See also the monitorInterval setting so you can change the config file and it gets refreshed automatically. If you're looking for a programmatic way to do it, you could follow the example set by Spring Boot 1.x in how they delay logging until a certain point. (Generally involves registering a filt

Re: Logging of logs only on demand

2018-02-05 Thread Chandra
ThreadContext + Filters is your friend :) Best, Chandra On 5 Feb 2018, 3:40 PM +0530, Kavitha Balan Nair , wrote: > Hi, > > > > Is there any way to make the loggings on demand? what happens is once the > service is started it logs with the change in time stamp even though there > are no any de

Logging of logs only on demand

2018-02-05 Thread Kavitha Balan Nair
Hi, Is there any way to make the loggings on demand? what happens is once the service is started it logs with the change in time stamp even though there are no any details to be logged. Log4j2.10 is been used in the project Thanks, Kavitha