Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for EnableJSON (0.11 sec)

  1. internal/logger/logger.go

    )
    
    // EnableQuiet - turns quiet option on.
    func EnableQuiet() {
    	color.TurnOff() // no colored outputs necessary in quiet mode.
    	quietFlag = true
    }
    
    // EnableJSON - outputs logs in json format.
    func EnableJSON() {
    	color.TurnOff() // no colored outputs necessary in JSON mode.
    	jsonFlag = true
    	quietFlag = true
    }
    
    // EnableAnonymous - turns anonymous flag
    // to avoid printing sensitive information.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 09:43:48 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/common-main.go

    	} else {
    		err = mergeDisksLayoutFromArgs(serverCmdArgs(ctx), ctxt)
    	}
    
    	return err
    }
    
    func handleCommonArgs(ctxt serverCtxt) {
    	if ctxt.JSON {
    		logger.EnableJSON()
    	}
    	if ctxt.Quiet {
    		logger.EnableQuiet()
    	}
    	if ctxt.Anonymous {
    		logger.EnableAnonymous()
    	}
    
    	consoleAddr := ctxt.ConsoleAddr
    	addr := ctxt.Addr
    	configDir := ctxt.ConfigDir
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  3. cmd/server-main.go

    		Directory:       lgDirAbs,
    		MaximumFileSize: int64(lgSize),
    		Compress:        ctx.Bool("log-compress"),
    		FileNameFunc:    fileNameFunc,
    	})
    	if err != nil {
    		return nil, err
    	}
    	logger.EnableJSON()
    	return output, nil
    }
    
    // serverMain handler called for 'minio server' command.
    func serverMain(ctx *cli.Context) {
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    
    	var warnings []string
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
Back to top