class Dotenv::ReplayLogger
A logger that can be used before the apps real logger is initialized.
def add(*args, &block)
def add(*args, &block) @logs.push([args, block]) end
def initialize
def initialize super(nil) # Doesn't matter what this is, it won't be used. @logs = [] end
def replay(logger)
def replay(logger) @logs.each { |args, block| logger.add(*args, &block) } @logs.clear end