Set log level and pretty format