Add support for custom configs. Turn on log by default.