Log: Use configuration file

Based on source code provided by Y0no (https://github.com/y0no)