CN111858273A - Display method and device for processing logs - Google Patents

Display method and device for processing logs Download PDF

Info

Publication number
CN111858273A
CN111858273A CN202010633559.3A CN202010633559A CN111858273A CN 111858273 A CN111858273 A CN 111858273A CN 202010633559 A CN202010633559 A CN 202010633559A CN 111858273 A CN111858273 A CN 111858273A
Authority
CN
China
Prior art keywords
client
service program
channel
program
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.)
Pending
Application number
CN202010633559.3A
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202010633559.3A priority Critical patent/CN111858273A/en
Publication of CN111858273A publication Critical patent/CN111858273A/en
Pending legal-status Critical Current

Links

Images

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/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a display method and device for processing logs, wherein a management program in a server receives request instructions sent by various clients and sends the request instructions to service programs in the server corresponding to the clients, and the clients and the service programs are uniquely corresponding. And then, receiving a processing log sent by the service program in real time, and sending the processing log to the corresponding client so as to be displayed on the client for a developer to review. Therefore, the display method for the processing log can enable the developer to review the processing log in real time by sending the processing log to the client in real time, so as to improve the positioning efficiency of the developer on the error position in the request processing process.

Description

Display method and device for processing logs
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a display method and device for processing logs.
Background
In the software development process, a developer needs to use a development client to send a service request to a server, so that whether the server has a problem in the service processing process is determined according to the processing result of the server on the service request, and the problem is positioned according to a server log when the problem exists.
For a simpler service request, the server can process and feed back a processing result more quickly, and for a more complex service request, the server needs longer processing time to feed back a corresponding processing result. Moreover, for a more complex request, the server needs a longer processing time and cannot immediately feed back a processing result, and a corresponding processing log is very complicated.
Therefore, for a more complex service request, if the server has a problem in the service processing process, the developer needs to spend a long time to complete the problem location.
Disclosure of Invention
The application provides a display method and device for processing logs, which are used for improving the positioning efficiency of error positions in the request processing process.
In a first aspect, the present application provides a presentation method for processing logs, which is applied to a management program in a server, where the management program is used to manage information transfer between a client and a service program in the server, and the method includes:
receiving a request instruction sent by the client through a first channel, wherein the request instruction is used for requesting the service program corresponding to the client to process a service request carried by the request instruction;
Sending the request instruction to the service program corresponding to the client through a second channel, wherein the client is uniquely corresponding to the service program;
acquiring a processing log of the service program in real time;
and sending the acquired processing log of the service program to the corresponding client in real time.
In a possible implementation manner of the first aspect of the embodiment of the present invention, before the receiving the request instruction sent by the client through the first channel, the method includes:
and establishing the first channel between the first channel and the client and the second channel between the second channel and the service program, wherein the first channel and the second channel are long connection channels.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the obtaining, in real time, a processing log of the service program includes:
and acquiring a processing log of the service program in real time through a monitor.
In one possible implementation of the first aspect of the embodiment of the present invention,
the request instruction comprises a device identification of the client, and the sending the request instruction to the service program corresponding to the client through the second channel comprises:
Acquiring the equipment identifier of the client in the request instruction;
determining a machine identifier corresponding to the device identifier in each data pair stored in the management program according to the device identifier, wherein each data pair consists of a device identifier of a client and a machine identifier of a service program corresponding to the client;
and sending the request instruction to the service program corresponding to the machine identification through the second channel.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the processing log includes a machine identifier of the server, and sending the acquired processing log of the service program to the corresponding client in real time includes:
acquiring a machine identifier of the service program from the processing log;
determining a device identifier corresponding to the machine identifier in each of the data pairs;
and sending the processing log to a client corresponding to the equipment identifier in real time through the first channel.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the method further includes:
receiving a completion instruction sent by the client through the first channel;
And sending the completion instruction to the service program corresponding to the client through the second channel so as to instruct the service program to stop sending the processing log.
In a possible implementation manner of the first aspect of the embodiment of the present invention, the method further includes:
and deleting the data pair corresponding to the client from the management program according to the completion instruction.
In a second aspect, the present application provides a presentation method for processing logs, which is applied to a client, where the client transfers information between a management program in a server and a service program in the server, and the method includes:
sending a request instruction to the management program through a first channel, wherein the request instruction is used for requesting the service program corresponding to the client to process a service request carried by the request instruction, and the client is uniquely corresponding to the service program;
and receiving the processing log of the service program sent by the management program in real time, wherein the processing log of the service program is sent to the management program by the service program through a second channel in real time.
In a third aspect, the present application provides a presentation method for processing a log, which is applied to a service program in a server, where the service program transfers information with a client through a management program in the server, and the method includes:
Receiving a request instruction sent by the management program through a second channel, wherein the request instruction is sent to the management program by the client through a first channel and is used for requesting the service program corresponding to the client to process a service request carried by the request instruction, and the client is uniquely corresponding to the service program;
and sending a processing log to the management program in real time through the second channel.
In a fourth aspect, the present application provides a presentation apparatus for processing logs, which is applied to a management program in a server, where the management program is used to manage information transfer between a client and a service program in the server, and the apparatus includes:
a receiving unit, configured to receive a request instruction sent by the client through a first channel, where the request instruction is used to request the service program corresponding to the client to process a service request carried by the request instruction;
a sending unit, configured to send the request instruction to the service program corresponding to the client through a second channel, where the client uniquely corresponds to the service program;
the receiving unit is further configured to obtain a processing log of the service program in real time;
The sending unit is further configured to send the acquired processing log of the service program to the corresponding client in real time.
In a possible implementation manner of the fourth aspect of the embodiment of the present invention, the apparatus further includes:
the processing unit is used for establishing the first channel between the processing unit and the client and establishing the second channel between the processing unit and the service program, wherein the first channel and the second channel are long-chain connecting channels.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
and the processing unit is also used for acquiring the processing log of the service program in real time through the monitor.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
the processing unit is further configured to obtain a device identifier of the client in the request instruction;
the processing unit is further configured to determine, according to the device identifier, a machine identifier corresponding to the device identifier in each data pair stored in the management program, where each data pair is composed of a device identifier of a client and a machine identifier of a service program corresponding to the client;
the sending unit is further configured to send the request instruction to the service program corresponding to the machine identifier through the second channel.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
the processing log includes a machine identification of the server;
the processing unit is further used for acquiring the machine identifier of the service program from the processing log;
the processing unit is further configured to determine, in each of the data pairs, an apparatus identifier corresponding to the machine identifier;
the sending unit is further configured to send the processing log to a client corresponding to the device identifier in real time through the first channel.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
the receiving unit is further configured to receive a completion instruction sent by the client through the first channel;
the sending unit is further configured to send the completion instruction to the service program corresponding to the client through the second channel to instruct the service program to stop sending the processing log.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
and the processing unit is further used for deleting the data pair corresponding to the client from the management program according to the completion instruction.
In a fifth aspect, the present application provides a presentation apparatus for processing logs, which is applied to a client, where the client transfers information with a service program in a server through a management program in the server, and the apparatus includes:
A sending unit, configured to send a request instruction to the hypervisor through a first channel, where the request instruction is used to request the service program corresponding to the client to process a service request carried by the request instruction, and the client uniquely corresponds to the service program;
and the receiving unit is used for receiving the processing log of the service program sent by the management program in real time, and the processing log of the service program is sent to the management program by the service program through a second channel in real time.
In a sixth aspect, the present application provides a presentation apparatus for processing logs, which is applied to a service program, where the service program transfers information with a client through a management program, and the apparatus includes:
the receiving unit is used for receiving a request instruction sent by the management program through a second channel, wherein the request instruction is sent to the management program by the client through a first channel and is used for requesting the service program corresponding to the client to process a service request carried by the request instruction, and the client is uniquely corresponding to the service program;
and the sending unit is used for sending the processing log to the management program in real time through the second channel.
A seventh aspect, an embodiment of the present invention provides an electronic device, applied to a management program in a server, where the management program is used to manage information transfer between a client and a service program in the server, and the electronic device includes:
a processor, and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the presentation method of the corresponding processing log via execution of the executable instructions.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, which is applied to a management program in a server, where the management program is used to manage information transfer between a client and a service program in the server, and a computer program is stored on the management program, and when being executed by a processor, the computer program implements the presentation method for processing logs.
In a ninth aspect, an embodiment of the present invention provides an electronic device, which is applied to a client, where the client transfers information with a service program in a server through a management program in the server, and the electronic device includes:
a processor, and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the presentation method of the corresponding processing log via execution of the executable instructions.
In a tenth aspect, an embodiment of the present invention provides a computer-readable storage medium, which is applied to a client, where the client transfers information between a management program in a server and a service program in the server, and a computer program is stored on the client, and when being executed by a processor, the computer program implements the presentation method for processing logs.
In an eleventh aspect, an embodiment of the present invention provides an electronic device, applied to a service program in a server, where the service program transfers information with a client through a management program in the server, and the management program is configured to manage information transfer between the client and the service program, and includes:
a processor, and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the presentation method of the corresponding processing log via execution of the executable instructions.
In a twelfth aspect, an embodiment of the present invention provides a computer-readable storage medium, which is applied to a service program in a server, where the service program transfers information between a management program in the server and a client, and a computer program is stored on the service program, and when being executed by a processor, the computer program implements the method for presenting a processing log.
The application provides a display method and device for processing logs.A management program in a server receives a request instruction sent by a client and sends the request instruction to a service program in the server corresponding to the client, wherein the client is uniquely corresponding to the service program. And then, receiving a processing log sent by the service program in real time, and sending the processing log to the corresponding client so as to be displayed on the client for a developer to review. Therefore, the display method for processing the logs can enable the developer to review the processing logs in real time by sending the processing logs to the client in real time, so that the efficiency of the developer in positioning the error positions in the request processing process is improved.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart of a display method for processing a log according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a presentation system for processing logs according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a method for establishing a channel according to the present application;
fig. 4 is a flowchart of a data pair generation method provided in an embodiment of the present application;
fig. 5 is a flowchart of a method for forwarding a request instruction according to an embodiment of the present application;
fig. 6 is a flowchart of a forwarding method for processing a log according to an embodiment of the present application;
fig. 7 is a flowchart of a method for terminating sending a processing log according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a first example of a display apparatus for processing logs according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a second example of a display apparatus for processing logs according to the present application;
fig. 10 is a schematic structural diagram of a third embodiment of a display apparatus for processing logs according to the embodiment of the present application;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention;
fig. 12 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention;
fig. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a presentation method for processing a log according to an embodiment of the present application, and as shown in fig. 1, the method includes:
s1, the client sends a request instruction to the management program through a first channel, the request instruction is used for requesting the service program corresponding to the client to process the service request carried by the request instruction, and the client uniquely corresponds to the service program.
And S2, the management program receives a request instruction sent by the client through the first channel, wherein the request instruction is used for requesting the service program corresponding to the client to process the service request carried by the request instruction.
The client can be a website realized by JavaScript and socket. io-cl, and in the embodiment of the application, the client is mainly developed for the same client on different terminal devices. Generally, a developer inputs a corresponding request, such as a test script request, at a client, and at this time, the client needs to send a request instruction to the service program to instruct the service program to process the corresponding request. In the embodiment of the present application, as shown in fig. 2, for a schematic diagram of a presentation system for processing a log provided in the embodiment of the present application, it can be seen that a management program is arranged between a client and a service program, and the management program is equivalent to a platform for receiving and forwarding information, so that the client first sends a request instruction to the management program. The management program and the service program are both realized by using NodeJS (JavaScript) and socket.
Further, before receiving an execution request instruction sent by each client, as shown in fig. 3, the hypervisor is a schematic diagram of a method for establishing a channel provided by the present application, where the method includes:
s211, establishing the first channel between the first channel and the client and the second channel between the second channel and the service program, wherein the first channel and the second channel are long link channels.
Therefore, the management program respectively establishes long-chain connection relation with the client and the service program so as to ensure that the management program and the development client and the service program can realize real-time data transmission. As shown in fig. 2, a communication channel a-X established between the client a and the hypervisor X is a first channel between the development client a and the hypervisor X; a communication channel b-X established between the development client b and the management program X is a first channel between the development client b and the management program X; and a communication channel c-X established between the development client c and the management program X is a first channel between the development client c and the management program X. A communication channel A-X established between the service program A and the management program X is a second channel between the service program A and the management program X; a communication channel B-X established between the service program B and the management program X is a second channel between the service program B and the management program X; the communication channel C-X established between the service program C and the management program X is a second channel between the service program C and the management program X. It should be noted that, in the embodiment of the present application, only three development clients are taken as an example for description, and in actual use, the development clients may be increased or decreased according to actual needs. Meanwhile, the first channel may have a unique corresponding relationship with the client, a one-to-many relationship with the client, or a many-to-one relationship with the client; similarly, the second channel may be uniquely associated with the service program, may be in a one-to-many relationship with the service program, or may be in a many-to-one relationship with the service program. Therefore, the problem that information cannot be transmitted in time due to overload or failure of the first channel and the second channel can be effectively avoided, and the real-time property of log transmission processing is guaranteed.
Further, the client and the service program have a unique mapping relationship therebetween, and therefore, before receiving an execution request instruction sent by each client, the hypervisor first establishes a data pair between the client and the service program according to the mapping relationship, as shown in fig. 4, which is a flowchart of a data pair generation method provided in an embodiment of the present application, where the method includes:
s221, generating a data pair by combining the device identifier of the client, the machine identifier of the service program and the mapping relationship between the client and the service program, wherein the data pair is used for representing the mapping relationship between the device identifier and the machine identifier;
s222, storing each data pair in a storage medium of the management program for the management program to use.
Generally, the device where the client is located has a unique device identifier, and the device identifiers can be represented by numbers, characters, special symbols and the like; the service program is usually installed in a machine such as a physical machine, a virtual machine, or a docker, and the machines have unique machine identifiers for distinguishing them from each other, and these machine identifiers may be represented by numbers, characters, special symbols, or the like. Because the client and the service program have a mapping relationship, the device identifier and the machine identifier also have a mapping relationship, so that the client and the corresponding service program can be represented by using the corresponding device identifier and the corresponding machine identifier in a mapping manner, that is, corresponding data pairs are generated. For example, if the device identifier of the client is a, the machine identifier of the service program corresponding to the client is a, and the data pair is a-a. At this point, all data pairs may be stored in the storage medium of the hypervisor for use by the hypervisor in forwarding information.
And S3, the management program sends the request instruction to the service program corresponding to the client through a second channel, wherein the client is uniquely corresponding to the service program.
After receiving a request instruction sent by a client through a listener, a hypervisor needs to forward the instruction to a corresponding service program, so that the service program processes a service request carried in the request instruction.
Specifically, as shown in fig. 5, a flowchart of a method for forwarding a request instruction provided in an embodiment of the present application is shown, where the method includes:
s301, acquiring the equipment identifier of the client in the request instruction;
s302, determining machine identifications corresponding to the device identifications in each data pair stored in the management program according to the device identifications, wherein each data pair consists of a device identification of a client and a machine identification of a service program corresponding to the client;
s303, sending the request instruction to the service program corresponding to the machine identifier through the second channel.
The request instruction usually carries the device identifier of the client that issued the request instruction, so that the machine identifier corresponding to the device identifier is determined by the device identifier and the above-generated data pairs, and then the service program corresponding to the machine identifier is the service program corresponding to the client that issued the request instruction. In this way, the request command can be sent using a second channel between the hypervisor and the service. For example, if the client issuing the request instruction is a, it may be determined that the machine identifier is a in the data pair a-a, and the hypervisor X sends the execution request instruction to the service program a through a-X. And S4, the service program receives a request instruction sent by the management program through a second channel, the request instruction is sent by the client to the management program through a first channel and is used for requesting the service program corresponding to the client to process a service request carried by the request instruction, and the client is uniquely corresponding to the service program.
And S4, the service program receives a request instruction sent by the management program through a second channel, the request instruction is sent by the client to the management program through a first channel and is used for requesting the service program corresponding to the client to process a service request carried by the request instruction, and the client is uniquely corresponding to the service program.
And S5, the service program sends the processing log to the management program in real time through the second channel.
And S6, the management program acquires the processing log of the service program in real time.
After the service program receives the execution request instruction sent by the management program through the listener, the service program starts to process the request, and the process of processing the request forms a corresponding processing log. At this time, the service program will transmit the processing log to the management program in real time through the second channel using the transmitter. E.g., service program a, the generated processing log will be sent to the hypervisor through a-X. The management program can also be provided with a monitor, and the monitor is used for acquiring the processing log sent by the service program in real time, so that the real-time property of the management program for acquiring the processing log can be effectively improved.
And S7, the management program sends the acquired processing log of the service program to the corresponding client in real time.
And S8, the client receives the processing log of the service program sent by the management program in real time, and the processing log of the service program is sent to the management program by the service program through a second channel in real time.
Specifically, as shown in fig. 6, a flowchart of a forwarding method for processing a log according to an embodiment of the present application is provided, where the method includes:
s701, acquiring a machine identifier of the service program from the processing log;
s702, determining equipment identification corresponding to the machine identification in each data pair;
and S703, sending the processing log to a client corresponding to the equipment identifier in real time through the first channel.
The processing log usually has a machine identifier of the service program that generated the processing log, so that the device identifier corresponding to the machine identifier is determined by the machine identifier and the data pairs generated above, and then the client corresponding to the device identifier is the client corresponding to the service program that sent the processing log. In this way, the processing log may be sent using a first channel between the hypervisor and the client. For example, if the service program sending the processing log is a, it may be determined that the device identifier is a in the data pair a-a, and the management program X sends the processing log to the client a in real time through a-X.
Further, as shown in fig. 7, a flowchart of a method for terminating sending a processing log according to an embodiment of the present application is provided, where the method includes:
s9, receiving a completion instruction sent by the client through the first channel;
s10, sending the completion instruction to the service program corresponding to the client through the second channel to instruct the service program to stop sending the processing log.
Therefore, the sending action of the processing log can be terminated at any time according to the actual requirement of the client, the requirement of the client can be met, the workload of the service program can be reduced, and the information transmission pressure among the management program, the client and the service program can be reduced.
Further, the data pairs stored in the storage medium of the management program are used for the management program to determine the matching relationship between the client and the service program when the management program forwards information, generally, when the management program determines the matching relationship, all the data pairs need to be browsed, and the more the number of the visible data pairs is, the greater the workload of browsing and matching is. Therefore, in order to reduce the workload, the data pair corresponding to the client may be deleted from the hypervisor according to the completion instruction to reduce the number of data pairs in the storage medium.
Fig. 8 is a schematic structural diagram of a first embodiment of a display apparatus for processing logs provided in the embodiment of the present application, where the apparatus includes:
a receiving unit 1, configured to receive a request instruction sent by the client through a first channel, where the request instruction is used to request the service program corresponding to the client to process a service request carried by the request instruction;
a sending unit 2, configured to send the request instruction to the service program corresponding to the client through a second channel, where the client uniquely corresponds to the service program;
the receiving unit 1 is further configured to obtain a processing log of the service program in real time;
the sending unit 2 is further configured to send the acquired processing log of the service program to the corresponding client in real time.
Optionally, the apparatus further comprises:
and the processing unit 3 is configured to establish the first channel with the client and the second channel with the service program, where the first channel and the second channel are both long link channels.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
the processing unit 3 is further configured to obtain a processing log of the service program in real time through a listener.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
the processing unit 3 is further configured to obtain a device identifier of the client in the request instruction;
the processing unit 3 is further configured to determine, according to the device identifier, a machine identifier corresponding to the device identifier in each data pair stored in the management program, where each data pair is composed of a device identifier of a client and a machine identifier of a service program corresponding to the client;
the sending unit 2 is further configured to send the request instruction to the service program corresponding to the machine identifier through the second channel.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
the processing log includes a machine identification of the server;
the processing unit 3 is further configured to obtain a machine identifier of the service program from the processing log;
the processing unit 3 is further configured to determine, in each of the data pairs, an apparatus identifier corresponding to the machine identifier;
the sending unit 2 is further configured to send the processing log to the client corresponding to the device identifier in real time through the first channel.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
the receiving unit 1 is further configured to receive a completion instruction sent by the client through the first channel;
the sending unit 2 is further configured to send the completion instruction to the service program corresponding to the client through the second channel, so as to instruct the service program to stop sending the processing log.
In one possible implementation of the fourth aspect of the embodiment of the present invention,
the processing unit 3 is further configured to delete the data pair corresponding to the client from the hypervisor according to the completion instruction.
Fig. 9 is a schematic structural diagram of a second example of a presentation apparatus for processing logs, which is applied to a client, where the client transmits information through a management program and a service program, and the apparatus includes:
a sending unit 4, configured to send a request instruction to the hypervisor through a first channel, where the request instruction is used to request the service program corresponding to the client to process a service request carried by the request instruction, and the client uniquely corresponds to the service program;
and the receiving unit 5 is configured to receive the processing log of the service program sent by the management program in real time, and the processing log of the service program is sent to the management program by the service program through a second channel in real time.
Fig. 10 is a schematic structural diagram of a third embodiment of a presentation apparatus for processing logs, which is applied to a service program, where the service program transfers information with a client through a management program, and the apparatus includes:
a receiving unit 6, configured to receive a request instruction sent by the management program through a second channel, where the request instruction is sent by the client to the management program through a first channel, and is used to request the service program corresponding to the client to process a service request carried by the request instruction, and the client uniquely corresponds to the service program;
and the sending unit 7 is used for sending the processing log to the management program in real time through the second channel.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, which is applied to a management program, where the management program is used to manage information transfer between a client and a service program. The electronic device includes: a memory 101 and a processor 102;
a memory 101 for storing a computer program;
the processor 102 is configured to execute the computer program stored in the memory to implement the presentation method of the processing log in the foregoing embodiment. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 101 may be separate or integrated with the processor 102.
When the memory 101 is a device independent of the processor 102, the electronic apparatus may further include:
a bus 103 for connecting the memory 101 and the processor 102.
Fig. 12 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, which is applied to a client, where the client transmits information with a service program through a management program. The electronic device includes: a memory 111 and a processor 112;
a memory 111 for storing a computer program;
the processor 112 is configured to execute the computer program stored in the memory to implement the presentation method of the processing log in the foregoing embodiment. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 111 may be separate or integrated with the processor 112.
When the memory 111 is a device independent of the processor 112, the electronic apparatus may further include:
a bus 113 for connecting the memory 111 and the processor 112.
Fig. 13 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, which is applied to a service program, where the service program transfers information with a client through a management program. The electronic device includes: a memory 121 and a processor 122;
A memory 121 for storing a computer program;
the processor 122 is configured to execute the computer program stored in the memory to implement the presentation method of the processing log in the foregoing embodiment. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 121 may be separate or integrated with the processor 122.
When the memory 121 is a device independent of the processor 122, the electronic apparatus may further include:
a bus 123 for connecting the memory 121 and the processor 122.
The electronic device provided in the embodiment of the present invention may be configured to execute any one of the presentation methods for processing logs shown in the above embodiments, and the implementation manner and the technical effect of the method are similar, and details of the embodiment of the present invention are not described here.
An embodiment of the present invention further provides a readable storage medium, where a computer program is stored in the readable storage medium, and when at least one processor of a message sending apparatus executes the computer program, the message sending apparatus executes the method for displaying a processing log according to any of the foregoing embodiments.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program described above may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (12)

1. A presentation method for processing logs is applied to a management program in a server, wherein the management program is used for managing information transmission between a client and a service program in the server, and the method is characterized by comprising the following steps:
receiving a request instruction sent by the client through a first channel, wherein the request instruction is used for requesting the service program corresponding to the client to process a service request carried by the request instruction;
sending the request instruction to the service program corresponding to the client through a second channel, wherein the client is uniquely corresponding to the service program;
Acquiring a processing log of the service program in real time;
and sending the acquired processing log of the service program to the corresponding client in real time.
2. The method of claim 1, wherein the receiving the request instruction sent by the client through the first channel is preceded by:
and establishing the first channel between the first channel and the client and the second channel between the second channel and the service program, wherein the first channel and the second channel are long connection channels.
3. The method of claim 1, wherein the obtaining the processing log of the service program in real time comprises:
and acquiring a processing log of the service program in real time through a monitor.
4. The method of claim 1, wherein the request instruction comprises a device identifier of the client, and wherein sending the request instruction to the service corresponding to the client through the second channel comprises:
acquiring the equipment identifier of the client in the request instruction;
determining a machine identifier corresponding to the device identifier in each data pair stored in the management program according to the device identifier, wherein each data pair consists of a device identifier of a client and a machine identifier of a service program corresponding to the client;
And sending the request instruction to the service program corresponding to the machine identification through the second channel.
5. The method according to claim 4, wherein the processing log includes a machine identifier of the server, and the sending the acquired processing log of the service program to the corresponding client in real time includes:
acquiring a machine identifier of the service program from the processing log;
determining a device identifier corresponding to the machine identifier in each of the data pairs;
and sending the processing log to a client corresponding to the equipment identifier in real time through the first channel.
6. The method of claim 1, further comprising:
receiving a completion instruction sent by the client through the first channel;
and sending the completion instruction to the service program corresponding to the client through the second channel so as to instruct the service program to stop sending the processing log.
7. The method of claim 6, further comprising:
and deleting the data pair corresponding to the client from the management program according to the completion instruction.
8. A presentation method for processing logs is applied to a client, and the client transmits information with a service program in a server through a management program in the server, and the presentation method is characterized by comprising the following steps:
sending a request instruction to the management program through a first channel, wherein the request instruction is used for requesting the service program corresponding to the client to process a service request carried by the request instruction, and the client is uniquely corresponding to the service program;
and receiving the processing log of the service program sent by the management program in real time, wherein the processing log of the service program is sent to the management program by the service program through a second channel in real time.
9. A presentation method for processing logs is applied to a service program in a server, and the service program transmits information with a client through a management program in the server, and is characterized by comprising the following steps:
receiving a request instruction sent by the management program through a second channel, wherein the request instruction is sent to the management program by the client through a first channel and is used for requesting the service program corresponding to the client to process a service request carried by the request instruction, and the client is uniquely corresponding to the service program;
And sending a processing log to the management program in real time through the second channel.
10. A presentation apparatus for processing logs, applied to a management program in a server, the management program being used for managing information transfer between a client and a service program in the server, the apparatus comprising:
a receiving unit, configured to receive a request instruction sent by the client through a first channel, where the request instruction is used to request the service program corresponding to the client to process a service request carried by the request instruction;
a sending unit, configured to send the request instruction to the service program corresponding to the client through a second channel, where the client uniquely corresponds to the service program;
the receiving unit is further configured to obtain a processing log of the service program in real time;
the sending unit is further configured to send the acquired processing log of the service program to the corresponding client in real time.
11. A presentation apparatus for processing logs, applied to a client, where the client transmits information with a service program in a server through a management program in the server, the presentation apparatus comprising:
A sending unit, configured to send a request instruction to the hypervisor through a first channel, where the request instruction is used to request the service program corresponding to the client to process a service request carried by the request instruction, and the client uniquely corresponds to the service program;
and the receiving unit is used for receiving the processing log of the service program sent by the management program in real time, and the processing log of the service program is sent to the management program by the service program through a second channel in real time.
12. A presentation apparatus for processing logs, applied to a service program in a server, wherein the service program transmits information to a client through a management program in the server, the presentation apparatus comprising:
the receiving unit is used for receiving a request instruction sent by the management program through a second channel, wherein the request instruction is sent to the management program by the client through a first channel and is used for requesting the service program corresponding to the client to process a service request carried by the request instruction, and the client is uniquely corresponding to the service program;
and the sending unit is used for sending the processing log to the management program in real time through the second channel.
CN202010633559.3A 2020-07-02 2020-07-02 Display method and device for processing logs Pending CN111858273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010633559.3A CN111858273A (en) 2020-07-02 2020-07-02 Display method and device for processing logs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010633559.3A CN111858273A (en) 2020-07-02 2020-07-02 Display method and device for processing logs

Publications (1)

Publication Number Publication Date
CN111858273A true CN111858273A (en) 2020-10-30

Family

ID=73152170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010633559.3A Pending CN111858273A (en) 2020-07-02 2020-07-02 Display method and device for processing logs

Country Status (1)

Country Link
CN (1) CN111858273A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929329A (en) * 2014-04-14 2014-07-16 百度在线网络技术(北京)有限公司 Log processing and configuration method, configuration server, service end device and system
US20140331092A1 (en) * 2013-05-02 2014-11-06 Microsoft Corporation Activity based sampling of diagnostics data
CN104408132A (en) * 2014-11-28 2015-03-11 北京京东尚科信息技术有限公司 Data push method and system
CN104866326A (en) * 2015-06-19 2015-08-26 长沙廖氏软件科技有限公司 Integrated exchange middleware and implementation method thereof
CN105099740A (en) * 2014-05-15 2015-11-25 中国移动通信集团浙江有限公司 Log management system and log collection method
CN108632089A (en) * 2018-05-07 2018-10-09 平安普惠企业管理有限公司 Test management method, device, equipment and the computer storage media of terminal
CN109327351A (en) * 2018-09-12 2019-02-12 拉扎斯网络科技(上海)有限公司 Real-time collecting method, device, electronic equipment and the storage medium of daily record data
CN110007950A (en) * 2019-04-10 2019-07-12 优信拍(北京)信息科技有限公司 A kind of management method of application programming interfaces, device and server
CN110545296A (en) * 2018-05-28 2019-12-06 阿里巴巴集团控股有限公司 Log data acquisition method, device and equipment
CN110737634A (en) * 2019-10-22 2020-01-31 深圳前海微众银行股份有限公司 Log searching method, client, server and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140331092A1 (en) * 2013-05-02 2014-11-06 Microsoft Corporation Activity based sampling of diagnostics data
CN103929329A (en) * 2014-04-14 2014-07-16 百度在线网络技术(北京)有限公司 Log processing and configuration method, configuration server, service end device and system
CN105099740A (en) * 2014-05-15 2015-11-25 中国移动通信集团浙江有限公司 Log management system and log collection method
CN104408132A (en) * 2014-11-28 2015-03-11 北京京东尚科信息技术有限公司 Data push method and system
CN104866326A (en) * 2015-06-19 2015-08-26 长沙廖氏软件科技有限公司 Integrated exchange middleware and implementation method thereof
CN108632089A (en) * 2018-05-07 2018-10-09 平安普惠企业管理有限公司 Test management method, device, equipment and the computer storage media of terminal
CN110545296A (en) * 2018-05-28 2019-12-06 阿里巴巴集团控股有限公司 Log data acquisition method, device and equipment
CN109327351A (en) * 2018-09-12 2019-02-12 拉扎斯网络科技(上海)有限公司 Real-time collecting method, device, electronic equipment and the storage medium of daily record data
CN110007950A (en) * 2019-04-10 2019-07-12 优信拍(北京)信息科技有限公司 A kind of management method of application programming interfaces, device and server
CN110737634A (en) * 2019-10-22 2020-01-31 深圳前海微众银行股份有限公司 Log searching method, client, server and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN112988599B (en) Page debugging method and device, electronic equipment and storage medium
CN104079717A (en) Method for displaying device interface and server
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN106708717B (en) A kind of exploitation adjustment method and device
CN113821254A (en) Interface data processing method, device, storage medium and equipment
CN112073488A (en) Method and device for processing request
CN111147285B (en) Cloud security product unified management method
CN111858273A (en) Display method and device for processing logs
CN104079634A (en) Method, device and system for displaying device interface
CN112131092A (en) Page debugging method and device
CN114466322B (en) Communication method, system, device, storage medium and processor
CN112995932B (en) Short message link monitoring method, device, equipment and medium based on Hash algorithm
CN113204449B (en) Session backup method, computer-readable storage medium and terminal device
CN111555894B (en) Data processing method, device, equipment and storage medium
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN111131462A (en) Method for executing terminal instruction through protocol
CN111338642A (en) Method, device, terminal and storage medium for determining application downloading path
CN111400064A (en) Method for calling fixed value and recording file across safety zone
CN112671814A (en) Cross-platform equipment development method, device and system
CN112131095A (en) Pressure testing method and device
CN115378991B (en) Message processing method, device, equipment and computer storage medium
CN115001991B (en) Recording method and device based on performance test and storage medium
CN114157627B (en) Group processing method, device, electronic equipment and medium
CN113382373B (en) Monitoring device, system and method for bank peripheral system
CN116862604A (en) Data processing method, device, electronic equipment and storage medium

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