monitor: add log include location option on monitor CLI and API (#18795)

This commit is contained in:
James Rasell
2023-10-20 07:55:22 +01:00
committed by GitHub
parent f5c5035fde
commit ca9e08e6b5
12 changed files with 141 additions and 64 deletions

View File

@@ -45,6 +45,11 @@ type MonitorRequest struct {
// LogJSON specifies if log format should be unstructured or json
LogJSON bool
// LogIncludeLocation dictates whether the logger includes file and line
// information on each log line. This is useful for Nomad development and
// debugging.
LogIncludeLocation bool
// NodeID is the node we want to track the logs of
NodeID string