better log setting