Making log file and type optional

because that information sometimes not meaningful