add parameters to create logger, avoid get goroutine stack when there is no need to get stack info