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{
|
||||
NetCmd,
|
||||
authCmd,
|
||||
logCmd,
|
||||
LogCmd,
|
||||
waitApiCmd,
|
||||
fetchParamCmd,
|
||||
pprofCmd,
|
||||
@ -75,7 +75,7 @@ var Commands = []*cli.Command{
|
||||
WithCategory("developer", mpoolCmd),
|
||||
WithCategory("developer", stateCmd),
|
||||
WithCategory("developer", chainCmd),
|
||||
WithCategory("developer", logCmd),
|
||||
WithCategory("developer", LogCmd),
|
||||
WithCategory("developer", waitApiCmd),
|
||||
WithCategory("developer", fetchParamCmd),
|
||||
WithCategory("network", NetCmd),
|
||||
|
10
cli/log.go
10
cli/log.go
@ -7,16 +7,16 @@ import (
|
||||
"golang.org/x/xerrors"
|
||||
)
|
||||
|
||||
var logCmd = &cli.Command{
|
||||
var LogCmd = &cli.Command{
|
||||
Name: "log",
|
||||
Usage: "Manage logging",
|
||||
Subcommands: []*cli.Command{
|
||||
logList,
|
||||
logSetLevel,
|
||||
LogList,
|
||||
LogSetLevel,
|
||||
},
|
||||
}
|
||||
|
||||
var logList = &cli.Command{
|
||||
var LogList = &cli.Command{
|
||||
Name: "list",
|
||||
Usage: "List log systems",
|
||||
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",
|
||||
Usage: "Set log level",
|
||||
ArgsUsage: "[level]",
|
||||
|
Loading…
Reference in New Issue
Block a user