Unverified 提交 5f11ed79 作者: Steven Allen 提交者: GitHub

Merge pull request #6013 from AuHau/doc/logging

Improve CLI help pages
...@@ -22,6 +22,11 @@ var LogCmd = &cmds.Command{ ...@@ -22,6 +22,11 @@ var LogCmd = &cmds.Command{
ShortDescription: ` ShortDescription: `
'ipfs log' contains utility commands to affect or read the logging 'ipfs log' contains utility commands to affect or read the logging
output of a running daemon. output of a running daemon.
There are also two environmental variables that direct the logging
system (not just for the daemon logs, but all commands):
IPFS_LOGGING - sets the level of verbosity of the logging. One of: debug, info, warning, error, critical
IPFS_LOGGING_FMT - sets formatting of the log output. One of: color, nocolor
`, `,
}, },
......
...@@ -29,7 +29,7 @@ const ( ...@@ -29,7 +29,7 @@ const (
var Root = &cmds.Command{ var Root = &cmds.Command{
Helptext: cmdkit.HelpText{ Helptext: cmdkit.HelpText{
Tagline: "Global p2p merkle-dag filesystem.", Tagline: "Global p2p merkle-dag filesystem.",
Synopsis: "ipfs [--config=<config> | -c] [--debug=<debug> | -D] [--help=<help>] [-h=<h>] [--local=<local> | -L] [--api=<api>] <command> ...", Synopsis: "ipfs [--config=<config> | -c] [--debug | -D] [--help] [-h] [--api=<api>] [--offline] [--cid-base=<base>] [--upgrade-cidv0-in-output] [--encoding=<encoding> | --enc] [--timeout=<timeout>] <command> ...",
Subcommands: ` Subcommands: `
BASIC COMMANDS BASIC COMMANDS
init Initialize ipfs local configuration init Initialize ipfs local configuration
...@@ -72,6 +72,7 @@ TOOL COMMANDS ...@@ -72,6 +72,7 @@ TOOL COMMANDS
update Download and apply go-ipfs updates update Download and apply go-ipfs updates
commands List all available commands commands List all available commands
cid Convert and discover properties of CIDs cid Convert and discover properties of CIDs
log Manage and show logs of running daemon
Use 'ipfs <command> --help' to learn more about each command. Use 'ipfs <command> --help' to learn more about each command.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论