logstash/spec
Jordan Sissel 39e0ef5783 Allow Logstash to write its logs in JSON format
This is made available by a --log-in-json flag. Default is false.
When false, the old behavior [1] is used.

When true, JSON logs are emitted.

[1] The old behavior is realy two things. First, using Object#inspect to
serialize. Second, to color the output if the IO is a tty.

For #1569

This is a manual backport of PR #4820 into the 2.x branch.

Fixes #5277
2016-05-10 19:21:21 +00:00
..
bootstrap logstash-core & logstash-core-event extraction to support logstash-core-event-java impl, relates to #4191 2015-11-16 17:16:10 -05:00
plugin_manager stub the warn_local_gems call in the update command of the plugin manager as is only relevant for master, not for the version branches 2015-11-17 14:05:06 +00:00
pluginmanager Fix the plugin manager install and update commands to perform the validation properly when a private gem server (not rubygems) has been configured. This basically loads the sources so the system is able to perform the validation with the right destionation and not with the default source (rubygems.org) 2015-11-17 08:38:56 +00:00
util This adds a feature to let users dump all their installed plugins, 2015-11-18 16:28:50 +01:00
coverage_helper.rb fix coverage paths for new structure by #4123 2015-11-16 19:53:07 -05:00
license_spec.rb add artistic 2.x license to the list of accepted licenses 2015-11-16 17:53:33 +01:00
README.md Using already existing LOGSTASH_DEBUG env variable to debug + update README 2012-09-14 12:28:29 +02:00
spec_helper.rb Allow Logstash to write its logs in JSON format 2016-05-10 19:21:21 +00:00

How to run these tests

Run one:

rspec spec/the/test.rb

Run them all:

rspec spec/**/*.rb

Debug one test:

LOGSTASH_DEBUG=y rspec spec/the/test.rb