add colored log output and log file flush on logger construction