Sha256: 337c3744e527195c86d793f52e903ec9297009394e0d6e41b40a4e09f5d37e3c

Contents?: true

Size: 189 Bytes

Versions: 14

Compression:

Stored size: 189 Bytes

Contents

require 'json'

class Alerty
  class Plugin
    class Stdout
      def initialize(config)
      end

      def alert(record)
        $stdout.puts record.to_json
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
alerty-0.4.0 lib/alerty/plugin/stdout.rb
alerty-0.3.0 lib/alerty/plugin/stdout.rb
alerty-0.2.3 lib/alerty/plugin/stdout.rb
alerty-0.2.2 lib/alerty/plugin/stdout.rb
alerty-0.2.1 lib/alerty/plugin/stdout.rb
alerty-0.2.0 lib/alerty/plugin/stdout.rb
alerty-0.1.1 lib/alerty/plugin/stdout.rb
alerty-0.1.0 lib/alerty/plugin/stdout.rb
alerty-0.0.9 lib/alerty/plugin/stdout.rb
alerty-0.0.8 lib/alerty/plugin/stdout.rb
alerty-0.0.7 lib/alerty/plugin/stdout.rb
alerty-0.0.6 lib/alerty/plugin/stdout.rb
alerty-0.0.5 lib/alerty/plugin/stdout.rb
alerty-0.0.4 lib/alerty/plugin/stdout.rb