
Sometimes default formating of the log messages in Java is just not good enough. For example: I needed dates to be formated as YYYY-MM-DD, not YYYY-M-D and more important: I needed and extra new line after each message for two purposes: 1. To improve readability and 2. To be compatible with one old (PHP based) tool of mine that I use to parse log files. Strangely enough, I was unable to find decent examples how to change the default behaviour and after few attempts I finally come with the following (you will have to replace FMConstants.LOGGER_NAME and FMConstants.LOGGER_LEVEL with your own values):
(more…)

