You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: compact.rb
    path of file: ./repos/kontena/cli/lib/kontena/cli/log_formatters
    
    the code of the file until where you have to start completion: require 'logger'

module Kontena
  module Cli
    module LogFormatter
      class Compact < Logger::Formatter
        def self.ms_since_first
          Time.now.to_f - @fi
    
        def colorized_time
          elapsed = self.class.ms_since_last
          ts = TS_FORMAT % [elapsed]
          if elapsed > 300
            Kontena.pastel.red(ts)
          elsif elapsed > 100
            Kontena.pastel.yellow(ts)
          else
            ts
          end