Tests build confidence. Write 'em. They'll save your ass, and they'll let you take a chainsaw to your code without being afraid of unintended consequences.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'socket' | |
require 'syslog' | |
require 'logger' | |
require 'hoptoad_notifier' | |
# TcpSyslog is used are a dead-simple replacement for | |
# syslog ruby libs. None of them is able to send logs | |
# to a remote server, and even less in TCP. | |
# | |
# Example: |