Slf4j/logging When to use TRACE and DEBUG in your applicaton?

37 Views Asked by At

I am working on a project that enhances the operability of my application by going through all the application logic and decide what to log and what level where to use. I am stuck between the usage of TRACE and DEBUG. For example in a method:

public void search(String text) {
   log.trace("Inside search() method");
   log.info("search text value:{}", text);
   ...
}

Is this the correct approach for logging?

0

There are 0 best solutions below