export function isPlainObject (obj) {
return Object.prototype.toString.call(obj) === '[object Object]'
}
export function isLogObj (arg) {
if (!isPlainObject(arg)) {
return false
}
if (!arg.message && !arg.args) {
return false
}
if (arg.stack) {
return false
}
return true
}