diff --git a/core/commands2/log.go b/core/commands2/log.go index 461107b1d78480a179d9271de88fbffd3385f3c8..510085c85593f9df1839fa8fefc6ffebcb30b2f4 100644 --- a/core/commands2/log.go +++ b/core/commands2/log.go @@ -12,7 +12,15 @@ var logCmd = &cmds.Command{ cmds.Argument{"subsystem", cmds.ArgString, true, false}, cmds.Argument{"level", cmds.ArgString, true, false}, }, - Help: "TODO", + // TODO UsageLine: "log <name> <level> ", + // TODO Short: "switch logging levels of a running daemon", + Help: `ipfs log <subsystem> <level> - switch logging levels of a running daemon + + <subsystem> is a the subsystem logging identifier. Use * for all subsystems. + <level> is one of: debug, info, notice, warning, error, critical + +ipfs log is a utility command used to change the logging output of a running daemon. +`, Run: func(res cmds.Response, req cmds.Request) { args := req.Arguments() if err := u.SetLogLevel(args[0].(string), args[1].(string)); err != nil {