Skip to content

Commit

Permalink
Logging configuration docs
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandr Karbyshev <[email protected]>
Co-authored-by: Aleksandr Karbyshev <[email protected]>
Co-authored-by: Aleksandr Karbyshev <[email protected]>
  • Loading branch information
bengtlofgren and karbyshev committed Jul 3, 2023
1 parent 6e0b9d1 commit b2f7483
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/docs/pages/experimental/_meta.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"logging-config": "Configuring logging",
"local-network": "Spinning up a local network",
"ibc": "IBC"
}
14 changes: 14 additions & 0 deletions packages/docs/pages/experimental/logging-config.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Configuring Logging on Namada

The logging of the ledger can be configured by setting the following environment variables.
Default values are in **bold**.

| Variable | Values | Description |
| :------------------: | :----------------------------------------: | :---------------------: |
| `NAMADA_LOG` | **`info`**, `debug`, `warn`, `error` | Logging verbosity |
| `NAMADA_LOG_COLOR` | **`true`**, `false` | Switch colors on / off |
| `NAMADA_LOG_DIR` | | If set, the logs will be written to files in the specified directory. The log files will be named `namada.log` and `namada.err.log` and compressed using `gzip`. |
| `NAMADA_LOG_FMT` | **`full`**, `json`, `pretty` | Logging format |
| `NAMADA_LOG_ROLLING` | **`never`**, `minutely`, `hourly`, `daily` | Rolling logs frequency |
| `NAMADA_CMT_STDOUT` | `true`, **`false`** | Print all the CometBFT logs to stdout. (This information may be valuable to validators.) |
| `CMT_LOG_LEVEL` | **`info`**, `debug`, `warn`, `error` | CometBFT logs verbosity |

0 comments on commit b2f7483

Please sign in to comment.