A better framework (like log4j) to log could offer advantages such as:
- Save log in files, databases or simply show in console.
- Different types of messages such as INFO, DEBUG or ERROR.
- Easy to enable or disable only some type of message
- Among others.