{
    "name"  : "log记录检查",
    "problems" : {
        "log" : {
            "desc"      : "【问题】设备未对log信息进行显示或记录",
            "advice"    : "【建议】未开启log日志记录，若将来出故障需要查看日志则查询不到历史记录。建议开启日志logging  on，并保存到flash，命令为：logging file flash:xxx 。"
        }
    }
}
---------------------------code-------------------------------
res = cli("show run | in no logging on")
res = res.split(/\r?\n/)
if !res[2] :
    return 'success'
else:
    add_problem("log")
    return "warn"
end
