module WolfCore::LoggingUtils

def log_object(object, title: nil)

def log_object(object, title: nil)
  puts '---------------------------------'
  puts title if title
  case object
  when Hash, Array, OpenStruct
    object = object.to_h if object.instance_of?(OpenStruct)
    puts object.to_json
  when Object
    pp object
  else
    puts object
  end
end