Log, JSON
The log reporter is a standard looking logger based output with timestamps, logfmt fields and is perfect for parsing or pushing to a log indexing services such as Elastic.
You can switch to JSON logging as well (see flag).
Configure in spectral.yaml
:
.spectral/spectral.yaml
reporter:
outputs:
log: {}
# log: { json: true } # use JSON logging