class Ougai::Logger

def create_item_with_2args(arg1, arg2)

def create_item_with_2args(arg1, arg2)
  item = {}
  if arg2.is_a?(Exception) # msg, ex
    item[:msg] = arg1.to_s
    set_exc(item, arg2)
  elsif arg1.is_a?(Exception) # ex, data
    set_exc(item, arg1)
    item.merge!(as_hash(arg2))
    item[:msg] ||= arg1.to_s
  else # msg, data
    item[:msg] = arg1.to_s
    item.merge!(as_hash(arg2))
  end
  item
end