We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d9072 commit 6dd1926Copy full SHA for 6dd1926
internal/command/views/init.go
@@ -95,10 +95,18 @@ func (v *InitJSON) Output(messageCode InitMessageCode, params ...any) {
95
return
96
}
97
98
+ // Logged data includes by default:
99
+ // @level as "info"
100
+ // @module as "terraform.ui" (See NewJSONView)
101
+ // @timestamp formatted in the default way
102
+ //
103
+ // In the function below we annotate with extra data:
104
+ // "type":"init_output"
105
+ // "message_code":"<value>"
106
v.view.log.Info(
107
preppedMessage,
- "type", "init_output", // Add "type":"init_output"
- "message_code", string(messageCode), // Add "message_code":"<value>"
108
+ "type", "init_output",
109
+ "message_code", string(messageCode),
110
)
111
112
0 commit comments