CN106201844A - A kind of log collecting method and device - Google Patents

A kind of log collecting method and device Download PDF

Info

Publication number
CN106201844A
CN106201844A CN201610498825.XA CN201610498825A CN106201844A CN 106201844 A CN106201844 A CN 106201844A CN 201610498825 A CN201610498825 A CN 201610498825A CN 106201844 A CN106201844 A CN 106201844A
Authority
CN
China
Prior art keywords
daily record
output level
log collection
collected
application service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610498825.XA
Other languages
Chinese (zh)
Other versions
CN106201844B (en
Inventor
包陈河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rubu Technology Co.,Ltd.
Original Assignee
Beijing Intelligent Housekeeper Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Intelligent Housekeeper Technology Co Ltd filed Critical Beijing Intelligent Housekeeper Technology Co Ltd
Priority to CN201610498825.XA priority Critical patent/CN106201844B/en
Publication of CN106201844A publication Critical patent/CN106201844A/en
Application granted granted Critical
Publication of CN106201844B publication Critical patent/CN106201844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a kind of log collecting method and device, described method includes: judge whether to be collected the corresponding daily record of terminal applies service;If desired it is collected, it is determined that the output level of the most corresponding log collection of intended application service being collected;Send to terminal to collect and preset the log collection instruction that output level is corresponding;Receive the corresponding daily record of the described default output level of the described intended application service that described terminal sends respectively.Described device includes that log collection determines that module, output level determine module, instruction sending module and daily record receiver module.The embodiment of the present invention judges to determine whether to carry out log collection by server, it is possible to realize the active collection of server, it is to avoid log collection triggers single problem;Different daily records is collected, it is possible to meet the requirement of the on-demand collection of user, avoid the problem that log collection is the most complete simultaneously by output level.

Description

A kind of log collecting method and device
Technical field
The present embodiments relate to Internet technical field, be specifically related to a kind of log collecting method and device.
Background technology
Along with the function of intelligent robot is the most perfect, its intelligence degree improves constantly, increasing intelligent machine People initially enters average family, such as, sweeping robot, special robot etc., greatly facilitate the life of people.But, In order to understand the running status of intelligent robot, find fault and problem present in running in time, need to collect intelligence Log information in robot running, helps whether the function analyzing intelligent robot is correctly completed, and various parameter The situation of index.
Current intelligent robot cannot be to mobile phone, and flat board etc. has the equally convenient touch of intelligent terminal of display screen, Or as wearable type smart machine, user can directly trigger the collection of daily record.Intelligent robot the most on the market touches Sending out logic single, log collection is not complete, unstable result, thus causes effectively to be diagnosed function by daily record. Meanwhile, can only be passive wait program crashing, just submit this section of abnormal information to, and once program run quickly and burst afterwards that system all can be the most clear Reason, starts operation, and the probability that program can complete log collection work is the lowest.
During realizing the embodiment of the present invention, inventor only finds the log collecting method of existing intelligent robot After program is run quickly and burst, trigger log collection, cause log collection incomplete, simultaneously cannot on-demand active collection daily record.
Summary of the invention
Owing to the log collecting method of existing intelligent robot only triggers log collection after program is run quickly and burst, cause daily record Collect complete, simultaneously cannot the problem of on-demand active collection daily record, the present invention proposes a kind of log collecting method and device.
First aspect, the embodiment of the present invention proposes a kind of log collecting method, including:
Judge whether the corresponding daily record of terminal applies service is collected;
If desired it is collected, it is determined that the output stage of the most corresponding log collection of intended application service being collected Not;
Send to terminal to collect and preset the log collection instruction that output level is corresponding;
Receive the corresponding daily record of the described default output level of the described intended application service that described terminal sends respectively.
Preferably, described in judge whether to terminal applies service corresponding daily record be collected, farther include:
Described server is according to current time, current location, current network conditions and server memory situation, it may be judged whether The corresponding daily record of the application service being installed terminal is collected.
Preferably, the described output level determining the most corresponding log collection of intended application service being collected, enter one Step includes:
According to stl status and fault restoration state, determine the output stage of the intended application service log collection of correspondence respectively Not.
Preferably, the described default output level that the described described intended application receiving the transmission of described terminal respectively services Corresponding daily record, farther includes:
Burst receives the corresponding daily record of the described default output level of the described intended application service that described terminal sends.
Preferably, described method also includes:
According to default file address, daily record corresponding for described default output level is stored to described default file.
Preferably, according to default file address, described method also includes:
The daily record of storage in described default file is analyzed, generates analysis result and show.
As shown from the above technical solution, the log collecting method that the embodiment of the present invention provides judges to determine by server No carry out log collection, it is possible to realize the active collection of server, it is to avoid log collection triggers single problem;By output Rank collects different daily records, it is possible to meets the requirement of the on-demand collection of user, avoids the problem that log collection is the most complete simultaneously.
Second aspect, the embodiment of the present invention also proposes a kind of log collection device, including:
Log collection determines module, for judging whether that the corresponding daily record servicing terminal applies is collected;
Output level determines module, for being if desired collected, it is determined that the intended application service being collected is respectively The output level of corresponding log collection;
Instruction sending module, presets, for sending to terminal to collect, the log collection instruction that output level is corresponding;
Daily record receiver module, for receiving the described default output of the described intended application service that described terminal sends respectively The corresponding daily record of rank.
Preferably, described log collection determines that module is further used for according to current time, current location, current network feelings Condition and server memory situation, it may be judged whether the corresponding daily record of the application service being installed terminal is collected.
Preferably, described output level determines that module is further used for, according to stl status and fault restoration state, determining The output level of the log collection that intended application service is the most corresponding.
Preferably, described daily record receiver module is further used for the described intended application clothes that the burst described terminal of reception sends The corresponding daily record of the described default output level of business.
Preferably, described device also includes:
Memory module, for according to default file address, stores daily record corresponding for described default output level to described In default file.
Preferably, described device also includes:
Log analysis module, for being analyzed the daily record of storage in described default file, generates analysis result and shows Show.
As shown from the above technical solution, the log collection device that the embodiment of the present invention provides judges to determine by server No carry out log collection, it is possible to realize the active collection of server, it is to avoid log collection triggers single problem;By output Rank collects different daily records, it is possible to meets the requirement of the on-demand collection of user, avoids the problem that log collection is the most complete simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these figures.
The schematic flow sheet of a kind of log collecting method that Fig. 1 provides for one embodiment of the invention;
The schematic flow sheet of a kind of log collecting method that Fig. 2 provides for another embodiment of the present invention;
The schematic flow sheet of a kind of log collecting method that Fig. 3 provides for another embodiment of the present invention;
The structural representation of a kind of log collection device that Fig. 4 provides for one embodiment of the invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings, the detailed description of the invention of invention is further described.Following example are only used for more clear Chu's ground explanation technical scheme, and can not limit the scope of the invention with this.
Fig. 1 shows the schematic flow sheet of a kind of log collecting method that one embodiment of the invention provides, including:
S101, judge whether to terminal applies service corresponding daily record be collected;
Wherein, server can be according to decision rule, and actively the corresponding daily record to terminal applies service carries out log collection;Institute Stating decision rule can be: according to the routine work timetable of intelligent robot, select its free time to carry out log collection, with Do not affect the routine work efficiency of intelligent robot;Or, according to the network condition that server is current, when network speed is very fast Carry out log collection;Or, according to the internal memory situation that server is current, when free memory is more than threshold value, carry out log collection.
Or, server can also determine whether the day to each application service of terminal according to the monitoring file that terminal sends Will is collected.Specifically, in terminal side, including the monitoring service to each application service monitoring state;Described prison The state of control each application service of service acquisition, and upload monitoring file, described monitoring according to prefixed time interval to server File includes the running status of each application service.Specifically, in terminal side, including multiple application services, each application Service the most corresponding one or more journal files.
Determine whether the corresponding daily record of terminal applies service is carried out log collection by judgement, it is possible to log collection Switch dynamically controls.So can control output and the closedown of daily record flexibly so that consume there is no extra performance Meanwhile, complete daily record data can be collected, be analyzed for follow-up;Actively initiated by service end to collect instruction simultaneously, Intellectual analysis judges to collect, the pattern that the passive collapse that breaks traditions is collected so that collection mode is flexible and changeable, simultaneously to intelligent machine The fault diagnosis of device people is more comprehensively.
S102, if desired it is collected, it is determined that the most corresponding log collection of intended application service being collected defeated Go out rank;
Specifically, judge and determine the output level of log collection corresponding to each application service according to preset rules.
For example, described preset rules can be the order of severity of fault, such as minor failure, moderate fault and severe Fault;Or, the repair time of fault, such as 1 minute, 10 minutes, 30 minutes, 3 hours and 2 days;Or, can be according to user's Specific requirement presets.
Wherein, described output level is the different output requirements that each journal file is corresponding, illustrates corresponding application service The abnormal rank produced during operation.
For example, output level can be respectively set to from low to high: i (infor, notice), v (verbose, aobvious Show details), d (debug, recoverable), w (warn, warning) and e (error, fault).Wherein, i represent only notify use The daily record made a mistake in family, abnormal rank is minimum, and v represents the details daily record sending mistake to user, and d represents and informs user For recoverable error log, w represents the error log that warning user should be noted, e represents and sends fault log to user, abnormal Rank is the highest.
Or, described output level can represent with 1 grade-5 grades, and output level is the daily record of 1 grade of expression critical function module With the daily record of the functional module broken down, the daily record that need to upload in real time;Output level is the day of 2 grades of expression secondary function modules Will, uploads according to the instruction of server;Output level is the daily record of 3 grades of expression general function modules, according to server Instruction is uploaded.When the output level of journal file M is 2 grades, and functional module corresponding to journal file M does not breaks down, Then when server uploads 2 level logs to intelligent robot transmission, just upload this journal file M to server.
Or, described output level can be defined according to the specific requirement of user.
Specifically, at intelligent robot end, need to carry out following steps:
A1, creating at intelligent robot end and be installed on the monitoring service object of terminal, each application service takes in each application At the main-inlet of business, get the example of monitoring service object according to monitoring service object respectively, and then judge whether this is answered Log collection is carried out with service;
A2, object initialization, each application service is each called after getting this monitoring service object's example respectively initially Change method initializes;
Wherein, in step A2, each application service have received monitoring service object's example respectively, right according to detection service Switch LOG_ENABLED and debugflag's DEBUG attribute are collected in permission as defined in example, and the daily record controlling self record is The no control station that should export terminal.Switch is collected in described permission and described debugflag is boolean type data, described Allow to collect switch LOG_ENABLED and represent whether intelligent robot end allows the switch of server collector journal, default situations It is down closed mode, to prevent the illegal collection of rogue program;When server judge determine need to carry out log collection time, described Allow to collect switch and will change to open mode;Described debugflag is more convenient for debugging access during debugging for convenience And the labelling arranged.Detection service object's example also have registered a self-defining radio receiver, this radio receiver simultaneously It is responsible for response command, controls daily record and switch, and open the service of collector journal information, be used for log collection and upload.
A3, daily record output, the monitoring service object's example after each application service initializes calls output level method, past The log information of control station output different stage;Wherein, output level method can be self-defined according to specific requirement by user.
Wherein, step A3 adds new function package, enhances the scheme of primary system so that it is during use more just Profit, but the most do not change the Code Design style of former Google, allow routine call time accessible.And the definition in step A3 Having the daily record rank operated, respectively minimal level minLevel and maximum level maxLevel, also a pressure is defeated Go out parameter, can restriction in break through step A2.Specifically, when step A3 arranges pressure output, the most no matter limit of step A2 Condition processed how, all exports according to minimal level in step A3 and maximum level.For example, when forcing output minimum level It is not 2, when maximum level is 4, then the daily record that output level is 2,3,4 is uploaded onto the server.
For example,
B1, application service, at main-inlet, get this monitoring by LogCat.getInstance (String tag) The example of service object, log collection must necessarily be placed in porch, and optimal implementation is placed on self-defining Application In, the most forward operation of instantiation of this monitoring service object.The tag specified is had to be easy to during each LogCat instantiation Distinguish filtering log;
B2, get this monitoring service object's example after call init (Context context) method to this object Example initializes.Initialization of this step is in order to the LogCat object created done default configuration, internal also have control and Revertive control mechanism, the mechanism that such encapsulation makes inside complicated is called and is become simple succinct.
B3, call logCat.i (String className, String msg) and logCat.i (String ClassName, String msg, boolean isOut, String fileName) etc., corresponding corresponding daily record rank, meet The daily record level rule of Android definition itself, isOut parameter can break through overall daily record switching mechanism, and fileName specifies guarantor The local file of the daily record deposited, flexible and changeable.
By log collection is carried out rank control, it is possible to solve the analysis difficulty that huge daily record causes;By specifying The scope of rank is uploaded, it is possible to only analyzes the daily record that user is concerned about, reduces analysis time, quickly location fault and problem.
S103, the log collection sending the default output level of collection to terminal corresponding instruct;
Wherein, described default output level can pre-set according to the requirement of user.
Specifically, server actively can control to open the service of collection by reserved backstage port;Open the service of collection After, server sends to terminal collects the collection instruction presetting daily record corresponding to output level.
Wherein, described collection instructs the default output level including daily record.
For example, server sends the daily record collecting output level less than 3 to terminal, then terminal needs output level Be 1 and 2 daily record upload onto the server.Wherein, described terminal can be intelligent robot.
S104, receive corresponding day of described default output level of the described intended application service that described terminal sends respectively Will.
Specifically, after server sends the collection instruction of the corresponding daily record collecting described default output level to terminal, Terminal side, concrete step includes:
It is first turned on allowing to collect switch;
Then according to the output level of the daily record collected in instruction, the daily record that described output level is corresponding is searched;
Finally daily record packing corresponding for described output level is uploaded to described server.
At server-side, after the daily record of packing is uploaded by terminal, receive the daily record that described default output level is corresponding.
The present embodiment judges to determine whether to carry out log collection by server, it is possible to realize the active collection of server, Avoid log collection and trigger single problem;Different daily records is collected, it is possible to meet the on-demand collection of user by output level Requirement, avoid the problem that log collection is the most complete simultaneously.
Further, on the basis of said method embodiment, S101 farther includes:
Described server is according to current time, current location, current network conditions and server memory situation, it may be judged whether The corresponding daily record of the application service being installed terminal is collected.
Specifically, Chief Web Officer link keep-alive techniques, heart beating can be used to send detection technique and integrated system situation analysis Decision-making, it is determined whether the daily record of the application service being installed terminal is collected.Wherein, described Chief Web Officer link keep-alive techniques Represent the connection maintaining network permanent and stable;Described heart beating sends after detection technique represents interval Preset Time and sends out to server Send notice, inform and be currently running;Described integrated system situation analysis decision-making represents that summation considers that multiple factors are analyzed, such as Run according to current time, current location, current network conditions, current interaction scenario, server memory situation, total system The various factors such as situation combine and judge whether to need to start smartphone daily record.
For example, server selects the triggering mode of a kind of collection, such as: call startSave method, and service end sends Diagnostic function is opened in instruction, and the service of concrete collection order is in another independent process, and this process is responsible for log collection and beats Wrap biography, be not involved in other business, it is ensured that safety.
Log collection is judged whether to, it is possible to combine current concrete condition and carry out daily record receipts by current design parameter Collection, not affect the routine work of intelligent robot, and improves the efficiency of log collection.
Further, on the basis of said method embodiment, S102 farther includes:
According to stl status and fault restoration state, determine the output stage of the intended application service log collection of correspondence respectively Not.
Specifically, described stl status refers to the mode of operation that daily record is current, for example whether update;Described fault is repaiied Change state refer to the application program of log recording break down after state, for example whether repair.
When daily record is in more new state, rank can be output it and be set to relatively low rank, to prevent daily record renewal process In upload the full problem of data that daily record causes.
After the application program of log recording breaks down the most repaired, then this daily record can be set to second highest rank, with Upload server as early as possible;Do not repair after the application program of log recording breaks down, then this daily record can be set to the superlative degree Not, with timely upload server.
Further, on the basis of said method embodiment, S104 farther includes:
Burst receives the corresponding daily record of the described default output level of the described intended application service that described terminal sends.
Use daily record allocation methods, it is possible to increase the success rate that daily record is uploaded, reduce bandwidth consumption, reduce network simultaneously and pass Defeated pressure.
Specifically, after intelligent robot is compressible when daily record is uploaded, burst is uploaded again.
Further, on the basis of said method embodiment, as in figure 2 it is shown, described method includes:
S201, judge whether to terminal applies service corresponding daily record be collected;
S202, if desired it is collected, it is determined that the most corresponding log collection of intended application service being collected defeated Go out rank;
S203, the log collection sending the default output level of collection to terminal corresponding instruct;
S204, receive corresponding day of described default output level of the described intended application service that described terminal sends respectively Will.
S205, according to default file address, daily record corresponding for described default output level is stored to described default file In.
Wherein, corresponding for S201-S204 with Fig. 1 S101-S104 in embodiment is corresponding.
Described default file address can pre-set according to the specific requirement of user.
Specifically, by arranging thread pool and file security lock control in S205, it is ensured that file is correctly, safely and efficiently In write default file.
Further, on the basis of said method embodiment, as it is shown on figure 3, described method includes:
S301, judge whether to terminal applies service corresponding daily record be collected;
S402, if desired it is collected, it is determined that the most corresponding log collection of intended application service being collected defeated Go out rank;
S303, the log collection sending the default output level of collection to terminal corresponding instruct;
S304, receive corresponding day of described default output level of the described intended application service that described terminal sends respectively Will.
S305, according to default file address, daily record corresponding for described default output level is stored to described default file In.
S306, the daily record of storage in described default file is analyzed, generates analysis result and also show.
Wherein, corresponding for S301-S205 with Fig. 2 S201-S205 in embodiment is corresponding.
Specifically, through the analysis of server in S306, different error codes can be generated, and make mark, for The set of family these data of preview clearly on backstage.
For example, problem identification may include that and do not solves, unimportant, solves, and currently cannot solve, Retarded Solution Certainly, special treatment.
By daily record is analyzed, it is possible to generate completely and intuitively functional diagnosis result, can be by for developer The management of response application service need to be carried out.
The present embodiment carries out segregation of duties to overall structural framing, uses dynamical fashion to control daily record switch, and with solely Vertical process Service logcat order collector journal information analysis diagnostic function.I.e. by the work of each system service of terminal monitoring State, once detect that abnormality reports server, then server actively starts to add up this terminal accordingly extremely The abnormal log that module is corresponding, and unify abnormal log is forwarded to log server generation error code, carry out merit for developer Can diagnosis.
The present embodiment can use the Logcat command set of google android system, by combining java thread pond, many Threading, multi-process file security Writing Technology, file fragmentation and synthetic technology so that program log collection and upload shape Become a perfect closed loop, had that information is complete, program is stable, performance consumption is low and the advantage of smartphone, and And also support response remote collection instruction, have that safety is high, autgmentability is strong, the simple advantage of operability and a technique extension, with And the progressive meaning constantly brought forth new ideas.
Fig. 2 shows the structural representation of a kind of log collection device that one embodiment of the invention provides, described device bag Include: log collection determines that module 21, output level determine module 22, instruction sending module 23 and daily record receiver module 24;Wherein,
Described log collection determines that module 21 is for judging whether that the corresponding daily record servicing terminal applies is collected;
Described output level determines that module 22 is for being if desired collected, it is determined that the intended application service being collected The output level of the most corresponding log collection;
Described instruction sending module 23 presets, for sending to terminal to collect, the log collection instruction that output level is corresponding;
It is described pre-that the described intended application that described daily record receiver module 24 sends for receiving described terminal respectively services If the corresponding daily record of output level.
Specifically, described log collection determines that module 21 judges whether that the corresponding daily record servicing terminal applies is received Collection;Described output level determines that module 22 is if desired collected, it is determined that the intended application service correspondence respectively being collected The output level of log collection;Described instruction sending module 23 sends to collect to terminal presets the log collection that output level is corresponding Instruction;Described daily record receiver module 24 receives the described default output stage of the described intended application service that described terminal sends respectively Other corresponding daily record..
The present embodiment judges to determine whether to carry out log collection by server, it is possible to realize the active collection of server, Avoid log collection and trigger single problem;Different daily records is collected, it is possible to meet the on-demand collection of user by output level Requirement, avoid the problem that log collection is the most complete simultaneously.
Further, on the basis of said apparatus embodiment, described log collection determines that module 21 is further used for root According to current time, current location, current network conditions and server memory situation, it may be judged whether the application clothes that terminal is installed The corresponding daily record of business is collected.
Further, on the basis of said apparatus embodiment, described output level determines that module 22 is further used for root According to stl status and fault restoration state, determine the output level of the intended application service log collection of correspondence respectively.
Further, on the basis of said apparatus embodiment, described daily record receiver module 24 is further used for burst and connects Receive the corresponding daily record of the described default output level of the described intended application service that described terminal sends.
Further, on the basis of said apparatus embodiment, described device also includes:
Memory module 25, for according to default file address, stores daily record corresponding for described output level to described pre- If in file.
Further, on the basis of said apparatus embodiment, described device also includes:
Log analysis module 26, for being analyzed the daily record of storage in described default file, generates analysis result also Display.
Log collection device described in the present embodiment may be used for performing said method embodiment, its principle and technique effect Similar, here is omitted.
Device embodiment described above is only schematically, and the wherein said unit illustrated as separating component can To be or to may not be physically separate, the parts shown as unit can be or may not be physics list Unit, i.e. may be located at a place, or can also be distributed on multiple NE.Can be selected it according to the actual needs In some or all of module realize the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, be i.e. appreciated that and implement.
Through the above description of the embodiments, those skilled in the art it can be understood that to each embodiment can The mode adding required general hardware platform by software realizes, naturally it is also possible to pass through hardware.Based on such understanding, on State the part that prior art contributes by technical scheme the most in other words to embody with the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers Make with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs each and implements The method described in some part of example or embodiment.
It is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although reference The present invention has been described in detail by previous embodiment, it will be understood by those within the art that: it still can be right Technical scheme described in foregoing embodiments is modified, or wherein portion of techniques feature is carried out equivalent;And this A little amendments or replacement, do not make the essence of appropriate technical solution depart from spirit and the model of various embodiments of the present invention technical scheme Enclose.

Claims (12)

1. a log collecting method, it is characterised in that including:
Judge whether the corresponding daily record of terminal applies service is collected;
If desired it is collected, it is determined that the output level of the most corresponding log collection of intended application service being collected;
Send to terminal to collect and preset the log collection instruction that output level is corresponding;
Receive the corresponding daily record of the described default output level of the described intended application service that described terminal sends respectively.
Method the most according to claim 1, it is characterised in that described in judge whether to terminal applies service corresponding daily record It is collected, farther includes:
Described server is according to current time, current location, current network conditions and server memory situation, it may be judged whether to end The corresponding daily record of the application service that end is installed is collected.
Method the most according to claim 1, it is characterised in that described determine be collected intended application service the most right Answer the output level of log collection, farther include:
According to stl status and fault restoration state, determine the output level of the intended application service log collection of correspondence respectively.
Method the most according to claim 1, it is characterised in that the described described target receiving the transmission of described terminal respectively should With the corresponding daily record of the described default output level of service, farther include:
Burst receives the corresponding daily record of the described default output level of the described intended application service that described terminal sends.
5. according to the method described in any one of claim 1-4, it is characterised in that described method also includes:
According to default file address, daily record corresponding for described default output level is stored to described default file.
Method the most according to claim 5, it is characterised in that described method also includes:
The daily record of storage in described default file is analyzed, generates analysis result and show.
7. a log collection device, it is characterised in that including:
Log collection determines module, for judging whether that the corresponding daily record servicing terminal applies is collected;
Output level determines module, for being if desired collected, it is determined that the intended application service correspondence respectively being collected The output level of log collection;
Instruction sending module, presets, for sending to terminal to collect, the log collection instruction that output level is corresponding;
Daily record receiver module, for receiving the described default output level of the described intended application service that described terminal sends respectively Corresponding daily record.
Device the most according to claim 7, it is characterised in that described log collection determines that module is further used for according to working as Front time, current location, current network conditions and server memory situation, it may be judged whether the application service that terminal is installed Corresponding daily record is collected.
Device the most according to claim 7, it is characterised in that described output level determines that module was further used for according to day Will state and fault restoration state, determine the output level of the intended application service log collection of correspondence respectively.
Device the most according to claim 7, it is characterised in that described daily record receiver module is further used for burst and receives The corresponding daily record of the described default output level of the described intended application service that described terminal sends.
11. according to the device described in any one of claim 7-10, it is characterised in that described device also includes:
Memory module, for according to default file address, stores daily record corresponding for described default output level and presets to described In file.
12. devices according to claim 11, it is characterised in that described device also includes:
Log analysis module, for being analyzed the daily record of storage in described default file, generates analysis result and shows.
CN201610498825.XA 2016-06-29 2016-06-29 A kind of log collecting method and device Active CN106201844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610498825.XA CN106201844B (en) 2016-06-29 2016-06-29 A kind of log collecting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610498825.XA CN106201844B (en) 2016-06-29 2016-06-29 A kind of log collecting method and device

Publications (2)

Publication Number Publication Date
CN106201844A true CN106201844A (en) 2016-12-07
CN106201844B CN106201844B (en) 2019-01-01

Family

ID=57463498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610498825.XA Active CN106201844B (en) 2016-06-29 2016-06-29 A kind of log collecting method and device

Country Status (1)

Country Link
CN (1) CN106201844B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562602A (en) * 2017-09-13 2018-01-09 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN107590241A (en) * 2017-09-13 2018-01-16 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN107609117A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN108011745A (en) * 2017-09-30 2018-05-08 北京车和家信息技术有限公司 The transmission method and device of data
CN109218407A (en) * 2018-08-14 2019-01-15 平安普惠企业管理有限公司 Code management-control method and terminal device based on log monitoring technology
CN109962978A (en) * 2019-02-28 2019-07-02 深圳市盛弘电气股份有限公司 Charging pile log deriving method, charging pile and control equipment
CN110413480A (en) * 2019-04-30 2019-11-05 北京云迹科技有限公司 Processing method and processing device for robot operating status
CN110928753A (en) * 2019-11-19 2020-03-27 深圳前海环融联易信息科技服务有限公司 Method and device for controlling log output of browser console, computer equipment and computer readable storage medium
CN111159127A (en) * 2018-11-07 2020-05-15 中移(苏州)软件技术有限公司 Log analysis method and device based on Apriori algorithm
CN111209023A (en) * 2020-01-08 2020-05-29 百度在线网络技术(北京)有限公司 Skill service updating method and device, electronic equipment and readable storage medium
CN112306834A (en) * 2020-10-29 2021-02-02 武汉迈威通信股份有限公司 Embedded log management system and method
CN115223269A (en) * 2021-09-06 2022-10-21 广州汽车集团股份有限公司 Automobile log uploading method and device, computer equipment and automobile

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790686A (en) * 2011-05-17 2012-11-21 浙江核新同花顺网络信息股份有限公司 Log data collecting method and system and log collecting server
WO2013161522A1 (en) * 2012-04-24 2013-10-31 日本電気株式会社 Log collection server, log collection system, log collection method
CN103942134A (en) * 2014-04-04 2014-07-23 福建星网视易信息系统有限公司 Method and system for viewing embedded device log
CN104253704A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Terminal log reporting method, device and system
CN104601374A (en) * 2015-01-05 2015-05-06 北京数码大方科技股份有限公司 Network fault processing method and device for numerical control machine tool

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790686A (en) * 2011-05-17 2012-11-21 浙江核新同花顺网络信息股份有限公司 Log data collecting method and system and log collecting server
WO2013161522A1 (en) * 2012-04-24 2013-10-31 日本電気株式会社 Log collection server, log collection system, log collection method
CN104253704A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Terminal log reporting method, device and system
CN103942134A (en) * 2014-04-04 2014-07-23 福建星网视易信息系统有限公司 Method and system for viewing embedded device log
CN104601374A (en) * 2015-01-05 2015-05-06 北京数码大方科技股份有限公司 Network fault processing method and device for numerical control machine tool

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107609117B (en) * 2017-09-13 2020-09-01 Oppo广东移动通信有限公司 Log information reporting method and device, storage medium, ADSP and terminal
CN107590241A (en) * 2017-09-13 2018-01-16 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN107609117A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN107562602A (en) * 2017-09-13 2018-01-09 广东欧珀移动通信有限公司 Log information report method, device and storage medium, ADSP and terminal
CN107562602B (en) * 2017-09-13 2021-11-16 Oppo广东移动通信有限公司 Log information reporting method and device, storage medium, ADSP and terminal
CN108011745A (en) * 2017-09-30 2018-05-08 北京车和家信息技术有限公司 The transmission method and device of data
CN109218407A (en) * 2018-08-14 2019-01-15 平安普惠企业管理有限公司 Code management-control method and terminal device based on log monitoring technology
CN109218407B (en) * 2018-08-14 2022-10-25 平安普惠企业管理有限公司 Code management and control method based on log monitoring technology and terminal equipment
CN111159127A (en) * 2018-11-07 2020-05-15 中移(苏州)软件技术有限公司 Log analysis method and device based on Apriori algorithm
CN109962978A (en) * 2019-02-28 2019-07-02 深圳市盛弘电气股份有限公司 Charging pile log deriving method, charging pile and control equipment
CN110413480A (en) * 2019-04-30 2019-11-05 北京云迹科技有限公司 Processing method and processing device for robot operating status
CN110928753A (en) * 2019-11-19 2020-03-27 深圳前海环融联易信息科技服务有限公司 Method and device for controlling log output of browser console, computer equipment and computer readable storage medium
CN111209023A (en) * 2020-01-08 2020-05-29 百度在线网络技术(北京)有限公司 Skill service updating method and device, electronic equipment and readable storage medium
CN112306834A (en) * 2020-10-29 2021-02-02 武汉迈威通信股份有限公司 Embedded log management system and method
CN115223269A (en) * 2021-09-06 2022-10-21 广州汽车集团股份有限公司 Automobile log uploading method and device, computer equipment and automobile

Also Published As

Publication number Publication date
CN106201844B (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN106201844A (en) A kind of log collecting method and device
CN110717665B (en) System and method for fault identification and trend analysis based on scheduling control system
CN104407964B (en) A kind of centralized monitoring system and method based on data center
US10545807B2 (en) Method and system for acquiring parameter sets at a preset time interval and matching parameters to obtain a fault scenario type
CN105323113B (en) A kind of system failure emergence treating method based on visualization technique
CN107577577A (en) Method, apparatus, system and the computer-readable recording medium of log-rank printing
CN108429629A (en) Equipment fault restoration methods and device
WO2020211561A1 (en) Data processing method and device, storage medium and electronic device
CN103812675A (en) Method and system for realizing allopatric disaster recovery switching of service delivery platform
CN110891283A (en) Small base station monitoring device and method based on edge calculation model
CN104394194A (en) Cloud system operation and maintenance monitoring method and system based on platform-as-a-service (PaaS) platform
CN105978721A (en) Method, device and system for monitoring operation state of services in clustering system
CN106452941A (en) Network anomaly detection method and device
CN106685685A (en) Method and system for monitoring performance of exchange boards across safety subareas
CN115664939A (en) Comprehensive operation and maintenance method and device based on automation technology and storage medium
CN107528705B (en) Fault processing method and device
CN110191016B (en) Cloud platform service monitoring method, device, equipment and system and readable storage medium
CN100449495C (en) System and method for assisting CPU to drive chips
CN103118359A (en) Implement method and device of self-healing of base station equipment
CN106557404A (en) A kind of method and mobile terminal of application control
CN105210043A (en) Information processing device
CN109614297A (en) Data guard method, device, equipment, system and computer readable storage medium
CN113364651A (en) Novel distributed network flow acquisition method
CN102646065A (en) Equipment power-on detection method and device with protection function
CN105550065A (en) Database server communication management method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Room 508-598, Xitian Gezhuang Town Government Office Building, No. 8 Xitong Road, Miyun County Economic Development Zone, Beijing 101500

Patentee after: Beijing Rubo Technology Co., Ltd.

Address before: Room 508-598, Xitian Gezhuang Town Government Office Building, No. 8 Xitong Road, Miyun County Economic Development Zone, Beijing 101500

Patentee before: BEIJING INTELLIGENT HOUSEKEEPER TECHNOLOGY CO., LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210819

Address after: 301-112, floor 3, building 2, No. 18, YANGFANGDIAN Road, Haidian District, Beijing 100038

Patentee after: Beijing Rubu Technology Co.,Ltd.

Address before: Room 508-598, Xitian Gezhuang Town Government Office Building, No. 8 Xitong Road, Miyun County Economic Development Zone, Beijing 101500

Patentee before: BEIJING ROOBO TECHNOLOGY Co.,Ltd.