#!/usr/bin/env ruby require 'bundler/setup' require_relative '../lib/logging' logger = PaulBunyan.set_logger(STDOUT) puts "JSONFormatter" logger.debug("PaulBunyanDemo") { "This is my debug message" } logger.info("PaulBunyanDemo") { "This is my info message" } logger.info("PaulBunyanDemo") { {foo: "bar", baz: "qux"} } logger.warn("PaulBunyanDemo") { "This is my warn message" } begin raise "heck" rescue => ex logger.error("PaulBunyanDemo") { ex } end logger.fatal("PaulBunyanDemo") { "This is my fatal message" }