Configure log level and format