@cryptotaxi247 / kubo / commits / 229b22f9c

docs(log) help

making docs match command: name -> subsystem. Is the desired name?

Brian Tiger Chow committed Nov 7, 2014 at 18:35 UTC 229b22f9c4d6637bebf2c0505d09f7e4c313fae8
1 file changed +9 -1
core/commands2/log.go
+9 -1
@@ -12,7 +12,15 @@ var logCmd = &cmds.Command{
12 cmds.Argument{"subsystem", cmds.ArgString, true, false},
13 cmds.Argument{"level", cmds.ArgString, true, false},
14 },
15 - Help: "TODO",
15 + // TODO UsageLine: "log <name> <level> ",
16 + // TODO Short: "switch logging levels of a running daemon",
17 + Help: `ipfs log <subsystem> <level> - switch logging levels of a running daemon
18 +
19 + <subsystem> is a the subsystem logging identifier. Use * for all subsystems.
20 + <level> is one of: debug, info, notice, warning, error, critical
21 +
22 +ipfs log is a utility command used to change the logging output of a running daemon.
23 +`,
24 Run: func(res cmds.Response, req cmds.Request) {
25 args := req.Arguments()
26 if err := u.SetLogLevel(args[0].(string), args[1].(string)); err != nil {