File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ type AuthConfig struct {
152152}
153153
154154type EventLogType struct {
155+ Format FileLogFormat `json:"format,omitempty" env:"SEMAPHORE_EVENT_LOG_FORMAT"`
155156 Enabled bool `json:"enabled" env:"SEMAPHORE_EVENT_LOG_ENABLED"`
156157 Logger * lumberjack.Logger `json:"logger,omitempty" env:"SEMAPHORE_EVENT_LOGGER"`
157158}
@@ -164,8 +165,16 @@ type EventLogRecord struct {
164165 Description * string `json:"description,omitempty"`
165166}
166167
168+ type FileLogFormat string
169+
170+ const (
171+ FileLogJSON FileLogFormat = "json"
172+ FileLogRaw FileLogFormat = "raw"
173+ )
174+
167175type TaskLogType struct {
168176 Enabled bool `json:"enabled" env:"SEMAPHORE_TASK_LOG_ENABLED"`
177+ Format FileLogFormat `json:"format,omitempty" env:"SEMAPHORE_TASK_LOG_FORMAT"`
169178 Logger * lumberjack.Logger `json:"logger,omitempty" env:"SEMAPHORE_TASK_LOGGER"`
170179 ResultLogger * lumberjack.Logger `json:"result_logger,omitempty" env:"SEMAPHORE_TASK_RESULT_LOGGER"`
171180}
You can’t perform that action at this time.
0 commit comments