logging in java

Java
Logging is the process of writing log messages during the execution of a 
program to a central place.This logging allows you to report and persist
error and warning messages as well as info messages (e.g., runtime 
statistics) so that the messages can later be retrieved and analyzed.
Source

Also in Java: