Open jmax01 opened 3 years ago
Add a static final Logger to every class that requires logging: static final Logger LOGGER = Logger.getLogger(MyClass.getCanonicalName());
static final Logger LOGGER = Logger.getLogger(MyClass.getCanonicalName());
Remove all references to System.out.print*
Add Logging to all catch blocks: LOGGER.log(Level.Error,ex, ()->String.format("My Method failed with these parameters %s, %s",param1.param2));
LOGGER.log(Level.Error,ex, ()->String.format("My Method failed with these parameters %s, %s",param1.param2))
Add a static final Logger to every class that requires logging:
static final Logger LOGGER = Logger.getLogger(MyClass.getCanonicalName());
Remove all references to System.out.print*
Add Logging to all catch blocks:
LOGGER.log(Level.Error,ex, ()->String.format("My Method failed with these parameters %s, %s",param1.param2))
;