CN109165147A - Log print control program, device, system, back-end server and headend equipment - Google Patents

Log print control program, device, system, back-end server and headend equipment Download PDF

Info

Publication number
CN109165147A
CN109165147A CN201810912372.XA CN201810912372A CN109165147A CN 109165147 A CN109165147 A CN 109165147A CN 201810912372 A CN201810912372 A CN 201810912372A CN 109165147 A CN109165147 A CN 109165147A
Authority
CN
China
Prior art keywords
data
log
abnormal
end server
normal
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.)
Pending
Application number
CN201810912372.XA
Other languages
Chinese (zh)
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810912372.XA priority Critical patent/CN109165147A/en
Publication of CN109165147A publication Critical patent/CN109165147A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides log print control program, device, system, back-end server and headend equipment, the above method includes: to receive to be instructed by the data exception that headend equipment is sent;It is instructed according to data exception, determines the process for generating exception service data, obtain abnormal process;Detailed status is set by the log print state of abnormal process, wherein is the process of detailed status for log print state, is printed the more detailed logging of the process.In the log print control program of the embodiment of the present invention, data exception instruction is sent by headend equipment, and back-end server does not have to carry out each service data analysis detection exception, can save the process resource of back-end server;Detailed status is set by the log print state of abnormal process, to print the more detailed logging of abnormal process, can targetedly print more detailed logging, on the basis of guaranteeing to facilitate analysis exception, saves storage resource.The efficiency and reasonability of log printing can be improved.

Description

Log print control program, device, system, back-end server and headend equipment
Technical field
The present invention relates to field of computer technology, take more particularly to log print control program, device, system, rear end Business device and headend equipment.
Background technique
Web site often will appear some exceptions, problem cannot surveyed in partial line when high concurrent big data quantity accesses Test ring reappears in border, can not the problem of checking each state of a process on line when occurring, need not weigh in server in response to the above problems It is analyzed under conditions of opening.
In response to the above problems, a kind of method generallyd use is to pass through problem in log analysis position line.System can print The log of server is for subsequent analysis.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
If keeping the more detailed logging of printing server, a large amount of computing resource can be occupied, wastes memory space;If fruit protects The brief log of printing server is held, the information for including in log is less, is not enough to analyze abnormal cause.Accordingly, it is desirable to be able to There is an efficient and rational log print control program.
Summary of the invention
The embodiment of the present invention be designed to provide a kind of log print control program, device, system, back-end server and Headend equipment, to realize the efficiency and reasonability that improve log printing.Specific technical solution is as follows:
In a first aspect, it is applied to back-end server the embodiment of the invention provides a kind of log print control program, it is described Method includes:
It receives and is instructed by the data exception that headend equipment is sent, wherein the data exception instruction catalogue sign service data is different Often;
It is instructed according to the data exception, determines the process for generating exception service data, obtain abnormal process;
Detailed status is set by the log print state of the abnormal process, wherein is directed to the log print state For the process of detailed status, the more detailed logging of the process is printed.
Optionally, the data exception instruction is the data based on hypertext transfer protocol.
Optionally, it is described set detailed status for the log print state of the abnormal process after, the method Further include:
After determining that the abnormal process restores normal, brief shape is set by the log print state of the abnormal process State, wherein be the process of brief state for the log print state, print the brief log of the process.
Optionally, the log print control program applied to back-end server of the embodiment of the present invention further include:
Receive the data normal instructions sent by headend equipment, wherein the data normal instructions characterization service data is just Often;
According to the data normal instructions, determine that the abnormal process restores normal.
Second aspect, the embodiment of the invention provides a kind of log print control programs, are applied to headend equipment, the side Method includes:
Rear end server sends service request;
Receive the service data returned by the back-end server;
Judge whether the service data is abnormal;
If the service data is abnormal, data exception instruction is sent to the back-end server, with different according to the data Often instruction prints the more detailed logging of corresponding process, wherein the data exception instruction characterization service data is abnormal, the phase Answering process is that the process of the service data is generated in the back-end server.
Optionally, the data exception instruction is the data based on hypertext transfer protocol.
Optionally, the business datum whether after exception is judged described, the method also includes:
If the business datum is normal, to the back-end server send data normal instructions, with according to the data just Often instruction prints the brief log of corresponding process, wherein it is normal that the data normal instructions characterize the service data.
The third aspect, the embodiment of the invention provides a kind of log print control units, are located at back-end server, the dress It sets and includes:
Exceptional instructions obtain module, for receiving the data exception instruction sent by headend equipment, wherein the data are different Normal instruction catalogue conquers business data exception;
Abnormal process determining module, for being instructed according to the data exception, the determining process for generating exception service data, Obtain abnormal process;
More detailed logging print module, for setting detailed status for the log print state of the abnormal process, wherein It is the process of detailed status for the log print state, prints the more detailed logging of the process.
Optionally, the data exception instruction is the data based on hypertext transfer protocol.
Optionally, the log print control unit positioned at back-end server of the embodiment of the present invention further include:
Brief log print module was used for after determining that the abnormal process restores normal, by the day of the abnormal process Will print state is set as brief state, wherein is the process of brief state for the log print state, prints the process Brief log.
Optionally, the log print control unit positioned at back-end server of the embodiment of the present invention further include:
Normal instructions receiving module, for receiving the data normal instructions sent by headend equipment, wherein the data are just Normal instruction catalogue sign service data is normal;
The normal determination module of process, for determining that the abnormal process restores normal according to the data normal instructions.
Fourth aspect, the embodiment of the invention provides a kind of log print control units, are located at headend equipment, described device Include:
Service request sending module sends service request for rear end server;
Service data reception module, for receiving the service data returned by the back-end server;
Abnormal determination module, for judging whether the service data is abnormal;
Exceptional instructions sending module sends data exception to the back-end server if abnormal for the service data Instruction, to print the more detailed logging of corresponding process according to data exception instruction, wherein the data exception instruction characterization institute Service data exception is stated, the corresponding process is that the process of the service data is generated in the back-end server.
Optionally, the data exception instruction is the data based on hypertext transfer protocol.
Optionally, the log print control unit positioned at headend equipment of the embodiment of the present invention further include:
It is normal to send data to the back-end server if normal for the business datum for brief log print module Instruction, to print the brief log of corresponding process according to the data normal instructions, wherein the data normal instructions characterize institute It is normal to state service data.
5th aspect, the embodiment of the invention provides a kind of back-end servers, including processor, communication interface, memory And communication bus, wherein the processor, the communication interface, the memory are completed mutual by the communication bus Communication;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes that above-mentioned first aspect is any described Log print control program.
6th aspect, the embodiment of the invention provides a kind of headend equipment, including processor, communication interface, memory and Communication bus, wherein the processor, the communication interface, the memory are completed each other by the communication bus Communication;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes that above-mentioned second aspect is any described Log print control program.
7th aspect, the embodiment of the invention provides a kind of log print control system, the system comprises:
Back-end server as described in terms of the above-mentioned 5th, headend equipment and log services as described in terms of the above-mentioned 6th Device, wherein the log server is used for print log.
Eighth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Instruction is stored in medium, when run on a computer, so that computer executes above-mentioned first aspect any day Will print control program.
9th aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage Instruction is stored in medium, when run on a computer, so that computer executes above-mentioned second aspect any day Will print control program.
Tenth aspect, the embodiment of the invention provides a kind of computer program products comprising instruction, when it is in computer When upper operation, so that computer executes any log print control program of above-mentioned first aspect.
Tenth on the one hand, and the embodiment of the invention provides a kind of computer program products comprising instruction, when it is being calculated When being run on machine, so that computer executes any log print control program of above-mentioned second aspect.
Log print control program, device, system, back-end server and headend equipment provided in an embodiment of the present invention, connect It receives and is instructed by the data exception that headend equipment is sent, wherein data exception instruction catalogue conquers business data exception;According to data exception Instruction determines the process for generating exception service data, obtains abnormal process;Set detailed for the log print state of abnormal process Thin state, wherein be the process of detailed status for log print state, print the more detailed logging of the process.Data exception refers to Order is sent by headend equipment, and back-end server does not have to carry out each service data analysis detection exception, can save rear end The process resource of server;Detailed status is set by the log print state of abnormal process, to print the detailed of abnormal process Log can targetedly print more detailed logging, on the basis of guaranteeing to facilitate analysis exception, save storage resource.It can mention The efficiency and reasonability of high log printing.Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach All the above advantage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the first flow diagram of the log print control program of the embodiment of the present invention;
Fig. 2 is second of flow diagram of the log print control program of the embodiment of the present invention;
Fig. 3 is the third flow diagram of the log print control program of the embodiment of the present invention;
Fig. 4 is the 4th kind of flow diagram of the log print control program of the embodiment of the present invention;
Fig. 5 is the 5th kind of flow diagram of the log print control program of the embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of the log print control unit of the embodiment of the present invention;
Fig. 7 is another schematic diagram of the log print control program of the embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of the back-end server of the embodiment of the present invention;
Fig. 9 is a kind of schematic diagram of the headend equipment of the embodiment of the present invention;
Figure 10 is a kind of schematic diagram of the log print control system of the embodiment of the present invention;
Figure 11 is another schematic diagram of the log print control system of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
The network equipment, system and service routine etc. can all generate logout, i.e. log, every a line log in running All recite the description of the relevant operations such as date, time, user and movement.Daily record data has safely system important Effect.In order to which the information guaranteed in log analyzes abnormal cause enough, and reduce the storage occupied space of log, this hair to the greatest extent Bright embodiment provides a kind of log print control program, is applied to back-end server, referring to Fig. 1, this method comprises:
S101 is received and is instructed by the data exception that headend equipment is sent, wherein above-mentioned data exception instruction catalogue conquers business number According to exception.
Log print control program in the embodiment of the present invention can realize by Log Administration System, Log Administration System For arbitrarily can be realized the embodiment of the present invention log print control program system.Such as:
Log Administration System can be a kind of equipment, comprising: processor, memory, communication interface and bus;Processor, Memory is connected by bus with communication interface and completes mutual communication;Memory stores executable program code;Processing Device runs program corresponding with executable program code by reading the executable program code stored in memory, to be used for Execute the log print control program of the embodiment of the present invention.For example, Log Administration System is back-end server.
Log Administration System can also be a kind of application program, and the log for executing the embodiment of the present invention at runtime is beaten Printing control method.
Log Administration System can also be a kind of storage medium, and for storing executable code, executable code is for holding The log print control program of the row embodiment of the present invention.
Log Administration System is received to be instructed by the data exception that headend equipment is sent.Optionally, data exception instruction is base In the data of hypertext transfer protocol.HTTP (Hyper Text Transfer Protocol, hypertext transfer protocol) is to answer With widest network communication protocol, headend equipment rear end server sends the data exception instruction based on http protocol, energy Various communication scenes are enough widely used in, and monitor exception compared to back-end server itself, can reduce back-end server Processing pressure.
Optionally, data exception instruction may be embodied in the data of headend equipment return, such as return in headend equipment Confirmation message in designated position, indicate that the service data of confirmation message confirmation is abnormal by binary number 1, to reduce Signalling loads.
S102 is instructed according to above-mentioned data exception, is determined the process for generating exception service data, is obtained abnormal process.
Log Administration System is instructed according to data exception, the process of exception service data will be generated, as abnormal process.Example Such as, data exception instruction catalogue sign service data A is abnormal, it is determined that generates the process of exception service data A, and will generate abnormal clothes The process of business data A is as abnormal process.
The log print state of above-mentioned abnormal process is set detailed status by S103, wherein prints for above-mentioned log State is the process of detailed status, prints the more detailed logging of the process.
The log print state of abnormal process is set detailed status by Log Administration System.It is for log printing turntable The process of detailed status can print the more detailed logging of the process.
In embodiments of the present invention, data exception instruction is sent by headend equipment, and back-end server does not have to each clothes Data of being engaged in carry out analysis detection exception, can save the process resource of back-end server;By the log print state of abnormal process It is set as detailed status, to print the more detailed logging of abnormal process, can targetedly print more detailed logging, is guaranteeing convenient point On the basis of analysing exception, storage resource is saved, to improve the efficiency and reasonability of log printing.
Optionally, referring to fig. 2, before the data exception instruction that above-mentioned reception is sent by headend equipment, the above method is also Include:
S201 receives the service request sent by headend equipment.
Specifically, Log Administration System can be back-end server.Back-end server receives the industry sent by headend equipment Business request.
S202 generates the service data for being directed to above-mentioned service request.
Back-end server generates the service data of service request according to preset rules.
S203 sends above-mentioned service data to above-mentioned headend equipment, so that above-mentioned headend equipment is determining above-mentioned service number According to it is abnormal when, send data exception instruction.
End equipment returns to service data to back-end server forward.Headend equipment judges service after receiving service data Whether data are normal, in service data exception, generate and send the data exception instruction of characterization service data exception.
Optionally, participate in Fig. 3, it is above-mentioned set detailed status for the log print state of above-mentioned abnormal process after, The above method further include:
S301 sets the log print state of above-mentioned abnormal process to after determining that above-mentioned abnormal process restores normal Brief state, wherein be the process of brief state for above-mentioned log print state, print the brief log of the process.
Log Administration System sets brief for the log print state of the abnormal process after determining that abnormal process restores State while the working condition of brief analysis process, saves storage money to realize the brief log for printing the abnormal process Source.
Optionally, it is above-mentioned set detailed status for the log print state of above-mentioned abnormal process after, the above method Further include:
After determining that above-mentioned abnormal process restores normal, the log print state of above-mentioned abnormal process is set off shape State, wherein for the process that above-mentioned log print state is in off state, do not print the log of the process.
In embodiments of the present invention, after abnormal process restores normal, the brief log of the process is printed, or do not print this The log of process can save memory space.
Optionally, the log print control program that the present invention is implemented further include:
Step 1 receives the data normal instructions sent by headend equipment, wherein above-mentioned data normal instructions characterization service Data are normal.
Abnormal process continues as headend equipment and provides service, after abnormal process restores normal, process end equipment forward Send normal service data.Headend equipment is after receiving normal service data, returned data normal instructions.Optionally, number It is the data based on http protocol according to normal instructions.Headend equipment takes to the back-end after the service data that judgement receives is normal Business device sends data normal instructions, which may be embodied in return information.For example, returned in headend equipment Designated position in confirmation message indicates that the service data of confirmation message confirmation is normal by binary number 0, to reduce letter Enable load.
Step 2 determines that above-mentioned abnormal process restores normal according to above-mentioned data normal instructions.
After receiving data normal instructions, Log Administration System determines that service data is normal, and determines to generate the service The abnormal process of data restores normal.
The embodiment of the invention also provides a kind of log print control programs, referring to fig. 4, are applied to headend equipment, the party Method includes:
S401, rear end server send service request.
The log print control program that the present invention is implemented is applied to headend equipment, therefore can be executed by headend equipment The log print control program that the present invention is implemented.Headend equipment can set for smart phone, laptop or tablet computer etc. It is standby.
In the process of running, meeting rear end server sends service request to headend equipment, to receive back-end server Service.
S402 receives the service data returned by above-mentioned back-end server.
Back-end server receives service request, generates the service data for being directed to the service request, and end equipment returns forward The server data.Headend equipment receives the service data that back-end server is sent.
S403 judges whether above-mentioned service data is abnormal.
Whether abnormal headend equipment judges service data after obtaining service data.
S404 sends data exception instruction to above-mentioned back-end server, according to above-mentioned number if above-mentioned service data is abnormal The more detailed logging of corresponding process is printed according to exceptional instructions, wherein above-mentioned data exception instruction characterizes above-mentioned service data exception, on Stating corresponding process is that the process of above-mentioned service data is generated in above-mentioned back-end server.
After headend equipment determines service data exception, back-end server generates the data exception of mark service data exception Instruction, and rear end server sends data exception instruction.
Optionally, above-mentioned data exception instruction is the data based on hypertext transfer protocol.Such as it is returned in headend equipment Confirmation message in designated position, indicate that the service data of confirmation message confirmation is abnormal by binary number 1, to reduce Signalling loads.
In embodiments of the present invention, data exception instruction is sent by headend equipment, and back-end server does not have to each service number It is abnormal according to analysis detection is carried out, the process resource of back-end server can be saved;The more detailed logging of abnormal process is printed, it can be with More detailed logging is targetedly printed, on the basis of guaranteeing to facilitate analysis exception, saves storage resource.
Optionally, it participates in Fig. 5 and judges above-mentioned business datum whether after exception, the above method above-mentioned further include:
S405 sends data normal instructions to above-mentioned back-end server, according to above-mentioned number if above-mentioned business datum is normal The brief log of corresponding process is printed according to normal instructions, wherein it is normal that above-mentioned data normal instructions characterize above-mentioned service data.
In embodiments of the present invention, data normal instructions are sent when business datum is normal, print the brief of corresponding process Log can save memory space.
The embodiment of the invention provides a kind of log print control units, are located at back-end server, referring to Fig. 6, the device Include:
Exceptional instructions obtain module 601, for receiving the data exception instruction sent by headend equipment, wherein above-mentioned number It is abnormal according to exceptional instructions characterization service data;
Abnormal process determining module 602, for according to above-mentioned data exception instruct, determine generate exception service data into Journey obtains abnormal process;
More detailed logging print module 603, for setting detailed status for the log print state of above-mentioned abnormal process, In, it is the process of detailed status for above-mentioned log print state, prints the more detailed logging of the process.
In embodiments of the present invention, data exception instruction is sent by headend equipment, and back-end server does not have to each clothes Data of being engaged in carry out analysis detection exception, can save the process resource of back-end server;By the log print state of abnormal process It is set as detailed status, to print the more detailed logging of abnormal process, can targetedly print more detailed logging, is guaranteeing convenient point On the basis of analysing exception, storage resource is saved, to improve the efficiency and reasonability of log printing.
Optionally, in the log print control unit positioned at back-end server of the embodiment of the present invention, above-mentioned data are different Often instruction is the data based on hypertext transfer protocol.
Optionally, the log print control unit positioned at back-end server of the embodiment of the present invention further include:
Brief log print module was used for after determining that above-mentioned abnormal process restores normal, by the day of above-mentioned abnormal process Will print state is set as brief state, wherein is the process of brief state for above-mentioned log print state, prints the process Brief log.
Optionally, the log print control unit positioned at back-end server of the embodiment of the present invention further include:
Normal instructions receiving module, for receiving the data normal instructions sent by headend equipment, wherein above-mentioned data are just Normal instruction catalogue sign service data is normal;
The normal determination module of process, for determining that above-mentioned abnormal process restores normal according to above-mentioned data normal instructions.
Present invention implementation additionally provides a kind of log print control unit, is located at headend equipment, referring to Fig. 7, the device packet It includes:
Service request sending module 701 sends service request for rear end server;
Service data reception module 702, for receiving the service data returned by above-mentioned back-end server;
Abnormal determination module 703, for judging whether above-mentioned service data is abnormal;
It is different to send data to above-mentioned back-end server if abnormal for above-mentioned service data for exceptional instructions sending module 704 Often instruction, to print the more detailed logging of corresponding process according to the instruction of above-mentioned data exception, wherein above-mentioned data exception instruction characterization Above-mentioned service data is abnormal, and above-mentioned corresponding process is that the process of above-mentioned service data is generated in above-mentioned back-end server.
In embodiments of the present invention, data exception instruction is sent by headend equipment, and back-end server does not have to each service number It is abnormal according to analysis detection is carried out, the process resource of back-end server can be saved;The more detailed logging of abnormal process is printed, it can be with More detailed logging is targetedly printed, on the basis of guaranteeing to facilitate analysis exception, saves storage resource.
Optionally, in the log print control unit positioned at headend equipment of the embodiment of the present invention, above-mentioned data exception Instruction is the data based on hypertext transfer protocol.
Optionally, the log print control unit positioned at headend equipment of the embodiment of the present invention further include:
It is normal to send data to above-mentioned back-end server if normal for above-mentioned business datum for brief log print module Instruction, to print the brief log of corresponding process according to above-mentioned data normal instructions, wherein in above-mentioned data normal instructions characterization It is normal to state service data.
The embodiment of the invention also provides a kind of back-end servers, as shown in figure 8, including processor 801, communication interface 802, memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 pass through communication bus 804 complete mutual communication,
Memory 803, for storing computer program;
Processor 801 when for executing the program stored on memory 803, realizes following steps:
It receives and is instructed by the data exception that headend equipment is sent, wherein the data exception instruction catalogue sign service data is different Often;
It is instructed according to the data exception, determines the process for generating exception service data, obtain abnormal process;
Detailed status is set by the log print state of the abnormal process, wherein is directed to the log print state For the process of detailed status, the more detailed logging of the process is printed.
In embodiments of the present invention, data exception instruction is sent by headend equipment, and back-end server does not have to each clothes Data of being engaged in carry out analysis detection exception, can save the process resource of back-end server;By the log print state of abnormal process It is set as detailed status, to print the more detailed logging of abnormal process, can targetedly print more detailed logging, is guaranteeing convenient point On the basis of analysing exception, storage resource is saved, to improve the efficiency and reasonability of log printing.
Optionally, processor 801, when for executing the program stored on memory 803, additionally it is possible to realize above-mentioned application In any log print control program of back-end server.
The embodiment of the invention also provides a kind of headend equipments, as shown in figure 9, include processor 901, communication interface 902, Memory 903 and communication bus 904, wherein processor 901, communication interface 902, memory 903 are complete by communication bus 904 At mutual communication,
Memory 903, for storing computer program;
Processor 901 when for executing the program stored on memory 903, realizes following steps:
Rear end server sends service request;
Receive the service data returned by the back-end server;
Judge whether the service data is abnormal;
If the service data is abnormal, data exception instruction is sent to the back-end server, with different according to the data Often instruction prints the more detailed logging of corresponding process, wherein the data exception instruction characterization service data is abnormal, the phase Answering process is that the process of the service data is generated in the back-end server.
In embodiments of the present invention, data exception instruction is sent by headend equipment, and back-end server does not have to each service number It is abnormal according to analysis detection is carried out, the process resource of back-end server can be saved;The more detailed logging of abnormal process is printed, it can be with More detailed logging is targetedly printed, on the basis of guaranteeing to facilitate analysis exception, saves storage resource.
Optionally, processor 901, when for executing the program stored on memory 903, additionally it is possible to realize above-mentioned application In any log print control program of headend equipment.
The communication bus that above-mentioned back-end server and headend equipment are mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, number According to bus, control bus etc..Only to be indicated with a thick line in figure, it is not intended that an only bus or one convenient for indicating The bus of seed type.
Communication interface is for the communication between above-mentioned back-end server and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
The embodiment of the invention also provides a kind of log print control systems, and referring to Figure 10, which includes:
Back-end server 1001, headend equipment 1002 and log server 1003;
Back-end server 1001, for executing above-mentioned any log print control program applied to back-end server;
Headend equipment 1002, for executing above-mentioned any log print control program applied to headend equipment;
Log server 1003 is used for print log.
In embodiments of the present invention, data exception instruction is sent by headend equipment, and back-end server does not have to each clothes Data of being engaged in carry out analysis detection exception, can save the process resource of back-end server;By the log print state of abnormal process It is set as detailed status, to print the more detailed logging of abnormal process, can targetedly print more detailed logging, is guaranteeing convenient point On the basis of analysing exception, storage resource is saved, to improve the efficiency and reasonability of log printing.
Optionally, referring to Figure 11, above-mentioned back-end server 1001, comprising:
Service module 10011, printing control model 10012;
Service module 10011, the service request for sending for headend equipment, generates service data.
Printing control model 10012 for selecting log to be printed, and controls the printing of log.
Printing control model 10012 can specify content and form of printing etc..Process exception in service module 10011 When, the abnormal process is registered in printing control model 10012.Abnormal process is called by http protocol in headend equipment 1002 When, a parameter is transmitted, which can be data exception instruction or data normal instructions, wherein data exception instruction shows Need to print more detailed logging, data normal instructions show to print brief log or non-print log.Service module 10011 passes through reading Above-mentioned parameter is taken to determine the need for the more detailed logging of printing abnormal process.When receiving data exception instruction, service module 10011 read this parameter, call printing control model 10012, the abnormal log in abnormal process is printed, is conveniently opened Send out problem on personnel positioning line.After Resolving probiems on line, data normal instructions are received, close printing abnormal log function, System operates normally.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, be applied to so that computer executes in above-described embodiment Any log print control program of back-end server.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, be applied to so that computer executes in above-described embodiment Any log print control program of headend equipment.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any log print control for being applied to back-end server in above-described embodiment Method.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any log print control side for being applied to headend equipment in above-described embodiment Method.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For system, headend equipment and back-end services embodiment, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (17)

1. a kind of log print control program, which is characterized in that be applied to back-end server, which comprises
It receives and is instructed by the data exception that headend equipment is sent, wherein the data exception instruction catalogue conquers business data exception;
It is instructed according to the data exception, determines the process for generating exception service data, obtain abnormal process;
Detailed status is set by the log print state of the abnormal process, wherein it is detailed for being directed to the log print state The process of thin state, prints the more detailed logging of the process.
2. the method according to claim 1, wherein data exception instruction is based on hypertext transfer protocol Data.
3. the method according to claim 1, wherein the log print state of the abnormal process is set described It is set to after detailed status, the method also includes:
After determining that the abnormal process restores normal, brief state is set by the log print state of the abnormal process, Wherein, it is the process of brief state for the log print state, prints the brief log of the process.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Receive the data normal instructions sent by headend equipment, wherein the data normal instructions characterization service data is normal;
According to the data normal instructions, determine that the abnormal process restores normal.
5. a kind of log print control program, which is characterized in that be applied to headend equipment, which comprises
Rear end server sends service request;
Receive the service data returned by the back-end server;
Judge whether the service data is abnormal;
If the service data is abnormal, data exception instruction is sent to the back-end server, to refer to according to the data exception Enable the more detailed logging for printing corresponding process, wherein it is abnormal that the data exception instruction characterizes the service data, it is described accordingly into Journey is that the process of the service data is generated in the back-end server.
6. according to the method described in claim 5, it is characterized in that, data exception instruction is based on hypertext transfer protocol Data.
7. according to the method described in claim 5, it is characterized in that, judge the business datum whether after exception described, The method also includes:
If the business datum is normal, data normal instructions are sent to the back-end server, normally to refer to according to the data Enable the brief log for printing corresponding process, wherein it is normal that the data normal instructions characterize the service data.
8. a kind of log print control unit, which is characterized in that be located at back-end server, described device includes:
Exceptional instructions obtain module, for receiving the data exception instruction sent by headend equipment, wherein the data exception refers to Enable characterization service data abnormal;
Abnormal process determining module determines the process for generating exception service data, obtains for instructing according to the data exception Abnormal process;
More detailed logging print module, for setting detailed status for the log print state of the abnormal process, wherein be directed to The log print state is the process of detailed status, prints the more detailed logging of the process.
9. device according to claim 8, which is characterized in that the data exception instruction is based on hypertext transfer protocol Data.
10. device according to claim 8, which is characterized in that described device further include:
Brief log print module, for after determining that the abnormal process restores normal, the log of the abnormal process to be beaten Print state is set as brief state, wherein is the process of brief state for the log print state, prints the letter of the process Want log.
11. device according to claim 10, which is characterized in that described device further include:
Normal instructions receiving module, for receiving the data normal instructions sent by headend equipment, wherein the data normally refer to Enable characterization service data normal;
The normal determination module of process, for determining that the abnormal process restores normal according to the data normal instructions.
12. a kind of log print control unit, which is characterized in that be located at headend equipment, described device includes:
Service request sending module sends service request for rear end server;
Service data reception module, for receiving the service data returned by the back-end server;
Abnormal determination module, for judging whether the service data is abnormal;
Exceptional instructions sending module sends data exception instruction to the back-end server if abnormal for the service data, To print the more detailed logging of corresponding process according to data exception instruction, wherein the data exception instruction characterizes the clothes Business data exception, the corresponding process are that the process of the service data is generated in the back-end server.
13. device according to claim 12, which is characterized in that the data exception instruction is based on Hyper text transfer association The data of view.
14. device according to claim 12, which is characterized in that described device further include:
Brief log print module sends data normal instructions to the back-end server if normal for the business datum, To print the brief log of corresponding process according to the data normal instructions, wherein the data normal instructions characterize the clothes Data of being engaged in are normal.
15. a kind of back-end server, which is characterized in that including processor, communication interface, memory and communication bus, wherein institute Processor, the communication interface are stated, the memory completes mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes any method step of claim 1-4 Suddenly.
16. a kind of headend equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on memory, realizes any method step of claim 5-7 Suddenly.
17. a kind of log print control system, which is characterized in that the system comprises:
Back-end server as claimed in claim 15, headend equipment and log server as claimed in claim 16, wherein The log server is used for print log.
CN201810912372.XA 2018-08-10 2018-08-10 Log print control program, device, system, back-end server and headend equipment Pending CN109165147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810912372.XA CN109165147A (en) 2018-08-10 2018-08-10 Log print control program, device, system, back-end server and headend equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810912372.XA CN109165147A (en) 2018-08-10 2018-08-10 Log print control program, device, system, back-end server and headend equipment

Publications (1)

Publication Number Publication Date
CN109165147A true CN109165147A (en) 2019-01-08

Family

ID=64895600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810912372.XA Pending CN109165147A (en) 2018-08-10 2018-08-10 Log print control program, device, system, back-end server and headend equipment

Country Status (1)

Country Link
CN (1) CN109165147A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162512A (en) * 2019-05-05 2019-08-23 中国银行股份有限公司 A kind of log searching method, apparatus and storage medium
CN114185502A (en) * 2021-12-15 2022-03-15 平安科技(深圳)有限公司 Log printing method, device, equipment and medium based on production line environment
CN116701320A (en) * 2022-12-01 2023-09-05 荣耀终端有限公司 Log generation method and related device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599863A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 A kind of method and intelligent network system of realizing journal function
CN103152391A (en) * 2013-01-31 2013-06-12 杭州华三通信技术有限公司 Journal output method and device
CN103268277A (en) * 2013-04-23 2013-08-28 青岛海信传媒网络技术有限公司 Method and system for outputting log information
US20140373018A1 (en) * 2012-06-29 2014-12-18 International Business Machines Corporation Dynamically Adjusting a Log Level of a Transaction
CN104253704A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Terminal log reporting method, device and system
CN105700996A (en) * 2014-11-27 2016-06-22 迈普通信技术股份有限公司 Log output method and apparatus
CN105843822A (en) * 2015-01-16 2016-08-10 北京神州泰岳软件股份有限公司 Method and device for changing log levels
CN107291600A (en) * 2016-03-31 2017-10-24 北京北方华创微电子装备有限公司 A kind of recording method and device of daily record
CN107729506A (en) * 2017-10-23 2018-02-23 郑州云海信息技术有限公司 A kind of storage medium and the other dynamic adjusting method of journal stage, apparatus and system
CN107947954A (en) * 2016-10-12 2018-04-20 腾讯科技(深圳)有限公司 Dynamic adjustment journal stage other system, method and server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599863A (en) * 2009-06-30 2009-12-09 中兴通讯股份有限公司 A kind of method and intelligent network system of realizing journal function
US20140373018A1 (en) * 2012-06-29 2014-12-18 International Business Machines Corporation Dynamically Adjusting a Log Level of a Transaction
CN103152391A (en) * 2013-01-31 2013-06-12 杭州华三通信技术有限公司 Journal output method and device
CN103268277A (en) * 2013-04-23 2013-08-28 青岛海信传媒网络技术有限公司 Method and system for outputting log information
CN104253704A (en) * 2013-06-28 2014-12-31 腾讯科技(深圳)有限公司 Terminal log reporting method, device and system
CN105700996A (en) * 2014-11-27 2016-06-22 迈普通信技术股份有限公司 Log output method and apparatus
CN105843822A (en) * 2015-01-16 2016-08-10 北京神州泰岳软件股份有限公司 Method and device for changing log levels
CN107291600A (en) * 2016-03-31 2017-10-24 北京北方华创微电子装备有限公司 A kind of recording method and device of daily record
CN107947954A (en) * 2016-10-12 2018-04-20 腾讯科技(深圳)有限公司 Dynamic adjustment journal stage other system, method and server
CN107729506A (en) * 2017-10-23 2018-02-23 郑州云海信息技术有限公司 A kind of storage medium and the other dynamic adjusting method of journal stage, apparatus and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
劳卜: "谈谈前端异常捕获与上报", 《HTTPS://WWW.CNBLOGS.COM/LUOZHIHAO/P/8635507.HTML》 *
小胡子: "如何在发送异常时,把整个调用链的debug日志打印出来", 《HTTPS://SEGMENTFAULT.COM/Q/1010000015364728》 *
长发 周海 安富: "日志级别动态调整--小工具解决大问题", 《HTTPS://TECH.MEITUAN.COM/2017/02/17/CHANGE-LOG-LEVEL.HTML》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162512A (en) * 2019-05-05 2019-08-23 中国银行股份有限公司 A kind of log searching method, apparatus and storage medium
CN110162512B (en) * 2019-05-05 2021-11-09 中国银行股份有限公司 Log retrieval method, device and storage medium
CN114185502A (en) * 2021-12-15 2022-03-15 平安科技(深圳)有限公司 Log printing method, device, equipment and medium based on production line environment
CN114185502B (en) * 2021-12-15 2024-05-14 平安科技(深圳)有限公司 Log printing method, device, equipment and medium based on production line environment
CN116701320A (en) * 2022-12-01 2023-09-05 荣耀终端有限公司 Log generation method and related device
CN116701320B (en) * 2022-12-01 2024-05-14 荣耀终端有限公司 Log generation method and related device

Similar Documents

Publication Publication Date Title
US9112808B2 (en) Devices, systems, and methods for providing data
CN108829560A (en) Data monitoring method, device, computer equipment and storage medium
WO2022016847A1 (en) Automatic test method and device applied to cloud platform
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN105607986A (en) Acquisition method and device of user behavior log data
CN112311617A (en) Configured data monitoring and alarming method and system
CN107832329A (en) Page resource acquisition methods and terminal device
CN109165147A (en) Log print control program, device, system, back-end server and headend equipment
CN109471845A (en) Blog management method, server and computer readable storage medium
CN110784374A (en) Method, device, equipment and system for monitoring operation state of service system
CN107181821A (en) A kind of information push method and device based on SSE specifications
CN108400904A (en) A kind of health examination method and device based on micro services framework
CN114172829B (en) Server health monitoring method and system and computing equipment
CN107294811A (en) Network detecting method, network detection means and intelligent terminal
WO2016197737A1 (en) Self-check processing method, apparatus and system
CN109409948B (en) Transaction abnormity detection method, device, equipment and computer readable storage medium
CN110262917A (en) Host self-healing method, device, computer equipment and storage medium
CN106357480A (en) Method and device for monitoring network performance of application and mobile terminal
EP3750061A1 (en) Event to serverless function workflow instance mapping mechanism
CN112988523A (en) Multi-dimensional game system warning method and system
CN108182195A (en) A kind of loading method of data, device, terminal and storage medium
CN109726988A (en) A kind of flow engine call method, device, electronic equipment and readable storage medium storing program for executing
CN107368399A (en) Webpage monitoring method and system on a kind of line
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
CN110333930A (en) Digital Platform system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190108

RJ01 Rejection of invention patent application after publication