The invention discloses a method, a device, a server and a storage medium for obtaining a local log of a client. The method for obtaining the local log of the client includes: receiving the report information of the client, wherein the report information includes the abnormal performance information generated when the client application is running; when the report information conforms to the upload rules, obtaining the local log file of the client. According to the technical scheme of the embodiment of the invention, when the application program is abnormal, the reported information uploaded by the client is received actively, and whether the reported information conforms to the upload rules is judged. When the upload rules are met, the log files of the application program stored locally by the client are obtained, which ensures the rapid acquisition of the local log files, and the abnormal information is guaranteed by setting the upload rules The accuracy and necessity of the information feedback reduce the storage pressure of the server. At the same time, it realizes the automatic acquisition of local log files, which is easy to operate and widely applicable.
【技术实现步骤摘要】
客户端本地日志的获取方法、装置、服务器及存储介质
本专利技术实施例涉及应用程序
,尤其涉及一种客户端本地日志的获取方法、装置、服务器及存储介质。
技术介绍
随着互联网技术的不断发展,各式各样的应用程序(APP,Application)被广泛应用于人们的日常生活中。同时,APP也为人们的日常生活带来了诸多便利。然而,当用户在手机本地环境运行APP时,往往由于网络异常或者请求后台服务器异常等情况,导致APP出现异常,无法正常运行。为了分析APP异常产生的原因,通常需要获取用户手机的该APP的日志文件。由于用户所使用的网络环境为私人网络而导致服务器无法有效获取本地日志文件。现有技术提供了一些界面以供用户上传日志文件或者相关的截图等信息,由于用户并非是受过训练的专业人士,无法得知日志文件的存储位置,由用户上传日志实现难度大。因此,现有的获取本地日志的方法对用户本身要求过高,使得用户不能有效上传日志。
技术实现思路
本专利技术提供一种客户端本地日志的获取方法、装置、服务器及存储介质,当应用程序异常时,自动上传日志文件,有效节省了用户时间,提高了异常现象分析和解决的效率。第一方面,本专利技术实施例提供了一种客户端本地日志的获取方法,该客户端本地日志的获取方法,包括:接收客户端的上报信息,其中,所述上报信息包括客户端应用程序运行时所产生的异常表现信息;当所述上报信息符合上传规则时,获取所述客户端的本地日志文件。第二方面,本专利技术实施例还提供了一种客户端本地日志的获 ...
【技术保护点】
1.一种客户端本地日志的获取方法,其特征在于,包括:/n接收客户端的上报信息,其中,所述上报信息包括客户端应用程序运行时所产生的异常表现信息;/n当所述上报信息符合上传规则时,获取所述客户端的本地日志文件。/n
【技术特征摘要】
1.一种客户端本地日志的获取方法,其特征在于,包括:
接收客户端的上报信息,其中,所述上报信息包括客户端应用程序运行时所产生的异常表现信息;
当所述上报信息符合上传规则时,获取所述客户端的本地日志文件。
2.根据权利要求1所述的方法,其特征在于,当所述上报信息符合上传规则时,包括下述中的至少一项:
当所述上报信息的严重等级达到设定等级时,其中,所述严重等级根据至少一个客户端对所述异常表现信息的上报次数和/或上报频率确定;
当所述异常表现信息中包括与设定关键词匹配的关键词时;
当上报所述上报信息的用户符合上传条件时,其中,所述用户符合上传条件,包括:用户等级达到设定等级、用户为认证用户或用户的信誉值达到设定值。
3.根据权利要求1所述的方法,其特征在于,所述接收客户端的上报信息,包括:
通过所述应用程序的内部上报界面接收所述上报信息;或
通过设定的外部链接接收所述上报信息。
4.根据权利要求1所述的方法,其特征在于,还包括:
存储所述本地日志文件。
5.根据权利要求1所述的方法,其特征在于,还包括:
根据所述本地日志文件分析所述应用程序产生异常的原因。
6.根据权利要求5所述的方法,其特征在于,所述根据所述本地日志文件分析所述应用程序产生异常的原因,包括:
根据所述本地日志文件,获取所述应用程序的本地运营环境信息,其中,所述本地运营环境信息包括本地网络信息、与服务器的交互信息和本地运行环境中至少一项;
根据...
【专利技术属性】
技术研发人员:谢济帆,李尚毅,柯文涛,邹学平,
申请(专利权)人:深圳乐信软件技术有限公司,
类型:发明
国别省市:广东;44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。