SpectralOps / spectral-example-json-output

Spectral With JSON Output

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spectral With JSON Output

In this example you'll see how to use a JSON output in addition to your regular stylish reporter.

This is great for cases where you want to ship logs to your SIEM system or your log management service.

Look in .spectral/spectral.yaml:

reporter:
    outputs:
        stylish: {}        # nice looking CLI reports
        log:               # use a logger
            json: true     # enable JSON logging
            file: out.json # put output in a file

About

Spectral With JSON Output


Languages

Language:Ruby 100.0%