lib/jets/logger.rb
# Only need to override the add method as the other calls all lead to it.
Only need to override the add method as the other calls all lead to it.
Only need to override the add method as the other calls all lead to it .
def add(severity, message = nil, progname = nil)
      if message.nil?
        if block_given?
          message = yield
        else
          message = progname
          progname = @progname
        end
      end
      IO.buffer << message
      super 
    end
def add ( severity , message = nil , progname = nil ) if message . nil? if block_given? message = yield else message = progname progname = @progname end end IO . buffer << message super end
Only need to override the add method as the other calls all lead to it.
Only need to override the add method as the other calls all lead to it .
# Taken from Logger#add source # https://ruby-doc.org/stdlib-2.5.1/libdoc/logger/rdoc/Logger.html#method-i-add # Put the message in the Jets::IO.buffer which will get flushed to CloudWatch. # No need to include timestamp as CloudWatch already has a timestamp. # original logical
severity
<not_specific>
message
<not_specific>
progname
<not_specific>