Sha256: 7023a6d675a9c479fb208a5d6afee6572a55a94051b10d98f3b6819eb13add16
Contents?: true
Size: 342 Bytes
Versions: 28
Compression:
Stored size: 342 Bytes
Contents
require 'logstash-logger' describe LogStashLogger::Formatter::JsonLines do include_context "formatter" it "outputs in JSON format" do json_message = JSON.parse(formatted_message) expect(json_message["message"]).to eq(message) end it "terminates with a line break" do expect(formatted_message[-1]).to eq("\n") end end
Version data entries
28 entries across 28 versions & 3 rubygems