Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
282 B

class MultiLogger
def initialize(file_logger)
@rails_logger = Rails.logger
@file_logger = file_logger
end
delegate :info, to: :@rails_logger
delegate :warn, to: :@rails_logger
def error(data)
@rails_logger.error(data)
@file_logger.error(data)
end
end