move loogging configuration into new module