chore: export log cli commands
This commit is contained in:
parent
6827f2dce3
commit
1062117562
@ -58,7 +58,7 @@ var GetWorkerAPI = cliutil.GetWorkerAPI
|
|||||||
var CommonCommands = []*cli.Command{
|
var CommonCommands = []*cli.Command{
|
||||||
NetCmd,
|
NetCmd,
|
||||||
authCmd,
|
authCmd,
|
||||||
logCmd,
|
LogCmd,
|
||||||
waitApiCmd,
|
waitApiCmd,
|
||||||
fetchParamCmd,
|
fetchParamCmd,
|
||||||
pprofCmd,
|
pprofCmd,
|
||||||
@ -75,7 +75,7 @@ var Commands = []*cli.Command{
|
|||||||
WithCategory("developer", mpoolCmd),
|
WithCategory("developer", mpoolCmd),
|
||||||
WithCategory("developer", stateCmd),
|
WithCategory("developer", stateCmd),
|
||||||
WithCategory("developer", chainCmd),
|
WithCategory("developer", chainCmd),
|
||||||
WithCategory("developer", logCmd),
|
WithCategory("developer", LogCmd),
|
||||||
WithCategory("developer", waitApiCmd),
|
WithCategory("developer", waitApiCmd),
|
||||||
WithCategory("developer", fetchParamCmd),
|
WithCategory("developer", fetchParamCmd),
|
||||||
WithCategory("network", NetCmd),
|
WithCategory("network", NetCmd),
|
||||||
|
10
cli/log.go
10
cli/log.go
@ -7,16 +7,16 @@ import (
|
|||||||
"golang.org/x/xerrors"
|
"golang.org/x/xerrors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var logCmd = &cli.Command{
|
var LogCmd = &cli.Command{
|
||||||
Name: "log",
|
Name: "log",
|
||||||
Usage: "Manage logging",
|
Usage: "Manage logging",
|
||||||
Subcommands: []*cli.Command{
|
Subcommands: []*cli.Command{
|
||||||
logList,
|
LogList,
|
||||||
logSetLevel,
|
LogSetLevel,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var logList = &cli.Command{
|
var LogList = &cli.Command{
|
||||||
Name: "list",
|
Name: "list",
|
||||||
Usage: "List log systems",
|
Usage: "List log systems",
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
@ -41,7 +41,7 @@ var logList = &cli.Command{
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var logSetLevel = &cli.Command{
|
var LogSetLevel = &cli.Command{
|
||||||
Name: "set-level",
|
Name: "set-level",
|
||||||
Usage: "Set log level",
|
Usage: "Set log level",
|
||||||
ArgsUsage: "[level]",
|
ArgsUsage: "[level]",
|
||||||
|
Loading…
Reference in New Issue
Block a user