Java: Custom message format for Logger

I was looking for a way to configure output of Logger messages.

Solution is pretty simple and was found here Example: Creating custom formatters with java.util.logging.

1. add a class for custom formatting

1. set custom formatting in your code: