enhance useDefaultLogPrefix to accept null flag as true