feat: global set log with pretty console

This commit is contained in:
debugtalk
2021-10-18 10:04:45 +08:00
parent b345b455eb
commit a270af016c
4 changed files with 17 additions and 4 deletions

View File

@@ -16,6 +16,10 @@ var har2caseCmd = &cobra.Command{
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
hrp.SetLogLevel(logLevel)
if !logJSON {
hrp.SetLogPretty()
}
var outputFiles []string
for _, arg := range args {
var outputPath string