blow_up_syslog.rb

This simple bit of code will cause JRuby to die in our environment

0

Votes

require 'syslog'
require 'logger'
logger = Syslog.open('our_splunk_logger')
(1..99).each { |i| logger.alert("Message #{i}") }
logger.alert("Kaboom?") 

Vote Here

You must earn at least 1 vote on your snippets to be allowed to vote

Terms Of Use

Privacy Policy

Featured snippets are MIT license

Gears & Masters

Advertise

DevOpsnipp.com © 2020

medium.png