CN111241048A - Web terminal log management method, device, medium and electronic equipment - Google Patents

Web terminal log management method, device, medium and electronic equipment Download PDF

Info

Publication number
CN111241048A
CN111241048A CN202010003963.2A CN202010003963A CN111241048A CN 111241048 A CN111241048 A CN 111241048A CN 202010003963 A CN202010003963 A CN 202010003963A CN 111241048 A CN111241048 A CN 111241048A
Authority
CN
China
Prior art keywords
log
program
terminal
management method
program log
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
CN202010003963.2A
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.)
Guangdong Kamfu Technology Co ltd
Original Assignee
Guangdong Kamfu 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 Guangdong Kamfu Technology Co ltd filed Critical Guangdong Kamfu Technology Co ltd
Priority to CN202010003963.2A priority Critical patent/CN111241048A/en
Publication of CN111241048A publication Critical patent/CN111241048A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3086Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves the use of self describing data formats, i.e. metadata, markup languages, human readable formats
    • 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/3438Recording 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 monitoring of user actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention relates to a web terminal log management method, a device, a medium and electronic equipment, wherein the method comprises the following steps: acquiring user behaviors, and generating a program log by responding to the user behaviors; adding a corresponding time stamp to the program log; integrating the program log in the application of the terminal equipment, initializing the program log and acquiring the unique identifier of the terminal equipment; and classifying based on the unique identifier of the terminal equipment, and adding corresponding identifier classification aiming at the program log. On one hand, because the program log is directly integrated in the application of the terminal equipment, the log can be integrated in the terminal equipment with less code amount, and a lightweight log service scheme is realized; on the other hand, by adding the timestamp and the identification classification of the terminal equipment, the query and the management are facilitated.

Description

Web terminal log management method, device, medium and electronic equipment
Technical Field
The invention relates to the technical field of internet, in particular to a web terminal log management method, a web terminal log management device, a web terminal log management medium and electronic equipment.
Background
In the context of internet + applications, the B/S architecture (i.e., browser and server architecture) is the mainstream application architecture today. However, the application terminal based on the web page of the browser is not friendly to the operation and maintenance personnel in terms of logging, and is specifically represented as follows: on one hand, the operation and maintenance efficiency is low, because the application terminals are often scattered in different places, when one terminal has problems, if the log is recorded by using the native console log of the browser, the operation and maintenance personnel can only run to the terminal to check, and thus the operation and maintenance efficiency is inevitably low; log recorded by native console of the browser cannot be stored locally, and when operation and maintenance personnel need to forward the log to developers to further investigate, locate and find problems, the log cannot be stored locally, so that the log cannot be implemented completely.
For the situation of inconvenient operation and maintenance of the terminal, there are two solutions at present:
firstly, a user-defined web container is adopted to replace a browser, and to solve the problem of web log persistence, mature open-source web container frames, such as CEF based on C #, or Electron based on node, can be adopted, and the frames are used for developing a browser-like application, and then a Console. However, this can only solve the problem of log persistence, but is not enough to solve the problem of low operation and maintenance efficiency.
And secondly, an ELK log collection scheme is adopted, and the problem of low operation and maintenance efficiency can be solved by matching with an ELK (elastic search/Logstach/Kibana) scheme on the premise of log persistence. However, another operation and maintenance problem is derived, namely, the ELK belongs to a log collection scheme of a relative heavy weight, and log collection can be performed only by installing a Logstach application on each terminal and performing a certain amount of configuration work.
Based on the above, the problem of providing lightweight log collection and collection in the prior art cannot be solved.
The above drawbacks are expected to be overcome by those skilled in the art.
Disclosure of Invention
Technical problem to be solved
In order to solve the above problems in the prior art, the invention provides a web terminal log management method, device, medium and electronic device, which solve the problem that lightweight log collection and collection cannot be provided in the prior art.
(II) technical scheme
In order to achieve the purpose, the invention adopts the main technical scheme that:
according to a first aspect of the embodiments of the present invention, there is provided a method for managing logs of a web terminal, including:
acquiring user behaviors, and generating a program log by responding to the user behaviors;
adding a corresponding time stamp to the program log;
integrating the program log in the application of the terminal equipment, initializing the program log and acquiring the unique identifier of the terminal equipment;
and classifying based on the unique identifier of the terminal equipment, and adding corresponding identifier classification aiming at the program log.
In an exemplary embodiment of the invention, after generating the program log by responding to the user behavior, the method further includes:
judging the program log, and if the program log is available, adding the program log to a log management terminal; and if the program log is unavailable, adding the original log before the user action occurs to the log management terminal.
In an exemplary embodiment of the present invention, the adding the corresponding time stamp to the program log includes:
generating a corresponding time stamp for the generation time of the user behavior;
each program log generated corresponds to a time stamp.
In an exemplary embodiment of the present invention, after adding the corresponding timestamp to the program log, the method further includes:
generating a corresponding log level according to the program log;
wherein the log levels include: INFO, DEBUG, WARN, and ERROR.
In an exemplary embodiment of the present invention, when the terminal device is a user terminal, the unique identifier of the terminal device is a terminal machine number.
In an exemplary embodiment of the present invention, when the terminal device is a business service terminal, the unique identifier of the terminal device is a tax staff login account.
In an exemplary embodiment of the present invention, further comprising:
acquiring a query request;
and querying the program log of the log management terminal according to the query request to obtain a query result, wherein the query request comprises one or more of a timestamp, a log grade and an identification classification.
According to a second aspect of the embodiments of the present invention, there is provided a web terminal log management apparatus, including:
the log generation module is configured to acquire user behaviors and generate program logs by responding to the user behaviors;
a timestamp module configured to add a corresponding timestamp to the program log;
the identification module is configured to integrate the program log in the application of the terminal equipment, initialize the program log and acquire the unique identification of the terminal equipment;
and the classification module is configured to classify based on the unique identifier of the terminal equipment and add corresponding identifier classification for the program log.
According to a third aspect of embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the web terminal log management method described above.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
one or more processors;
a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the web terminal log management method described above.
(III) advantageous effects
The invention has the beneficial effects that: according to the web terminal log management method, the web terminal log management device, the web terminal log management medium and the electronic equipment, on one hand, because the program log is directly integrated in the application of the terminal equipment, the log can be integrated in the terminal equipment with less code amount, and a lightweight log service scheme is realized; on the other hand, by adding the timestamp and the identification classification of the terminal equipment, the query and the management are facilitated.
Drawings
FIG. 1 is a system scenario block diagram of a method and an apparatus for web terminal log management provided in the present invention;
fig. 2 is a flowchart illustrating a method for managing logs of a web terminal according to an embodiment of the present invention;
FIG. 3 is a block diagram of an architecture for generating a journal service in an embodiment of the present invention;
FIG. 4 is a schematic diagram of an interface for querying logs in accordance with an embodiment of the present invention;
fig. 5 is a schematic diagram of a log management apparatus based on a web terminal according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer system of an electronic device according to still another embodiment of the present invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
All technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Fig. 1 is a system scenario block diagram illustrating a method and apparatus for web terminal log management according to an exemplary embodiment.
As shown in fig. 1, the system architecture 100 may include user terminal devices 101, 102, 103, a network 104, a server 105, and business service terminal devices 106, 107, 108. The network 104 serves to provide a medium for communication links between the terminal devices 101, 102, 103, the server 105 and the terminal devices 106, 107, 108. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
Wherein, the terminal devices include two types of user terminals and business service terminals, and users can utilize the user terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages and the like. Business service personnel (government service personnel such as tax clerks) may also interact with the server 105 via the network 104 using business service terminals to receive or send messages and the like. Various communication client applications, such as tax handling software, etc., may be installed on the user terminal devices 101, 102, 103 and the business service terminal devices 106, 107, 108.
The user terminal devices 101, 102, 103 and the business service terminal devices 106, 107, 108 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various data services, and the server 105 may be provided with a tax administration platform, and may obtain user behavior through the user terminal devices 101, 102, and 103, and generate a program log by responding to the user behavior. The server 105 may also be a background server for performing data storage processing on the log information provided by the service terminal devices 106, 107, and 108.
The server 105 may also add a corresponding timestamp to the program log after the program log is generated; integrating the program log in the application of the terminal equipment, initializing the program log and acquiring the unique identifier of the terminal equipment; and classifying based on the unique identifier of the terminal equipment, and adding corresponding identifier classification aiming at the program log.
The server 105 may be an entity server, and may also be composed of a plurality of servers, for example, a part of the server 105 may be, for example, a log management terminal in the present disclosure, and is configured to store a log file composed of program logs, where the log file includes, in addition to the program logs, corresponding timestamps and identification classifications of terminal devices.
It should be noted that the web terminal log management method provided by the embodiment of the present disclosure may be executed by the server 105, and accordingly, the web terminal log management apparatus may be disposed in the server 105.
The technical solution of the present disclosure is specifically described below.
Fig. 2 is a schematic flowchart of a method for managing logs of a web terminal according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
as shown in fig. 2, in step S210, a user behavior is acquired, and a program log is generated by responding to the user behavior;
as shown in fig. 2, in step S220, a corresponding timestamp is added to the program log;
as shown in fig. 2, in step S230, the program log is integrated into the application of the terminal device and initialized, so as to obtain the unique identifier of the terminal device;
as shown in fig. 2, in step S240, the unique identifier of the terminal device is classified, and a corresponding identifier classification is added to the program log.
In the technical solution provided in the embodiment shown in fig. 2, on one hand, since the program log is directly integrated in the application of the terminal device, the log can be integrated in the terminal device with a small amount of code, so as to implement a lightweight log service scheme; on the other hand, by adding the timestamp and the identification classification of the terminal equipment, the query and the management are facilitated.
The following describes in detail the specific implementation of each step of the embodiment shown in fig. 2, taking the management of the web terminal log of the tax system as an example:
in step S210, user behavior is acquired, and a program log is generated by responding to the user behavior.
In an exemplary embodiment of the present invention, in this step, the user behavior is obtained by monitoring the user behavior of the terminal device, and then a corresponding program log is generated according to the user behavior. For example, a websocket long connection can be established with a back-end server based on a terminal device, the back-end asynchronously executes while to continuously read log files circularly through a cell, and then sends the log files to a channel of the websocket, so that the log is generated and displayed in real time.
In an exemplary embodiment of the present invention, after the step of generating the program log, the method further includes:
judging the program log, and if the program log is available, adding the program log to a log management terminal; and if the program log is unavailable, adding the original log before the user action occurs to the log management terminal.
The original log is the browser's console. The console object has two main roles: firstly, displaying error information of webpage code when running; and providing a command line interface for interacting with the webpage codes. The log method is used to display information in the console window, and if the parameter is a normal character string, the log method displays the character string content in the console window. The Console object is not native JS-it is a browser-provided object for the user to easily access the Console, so there may be some differences in the effects of Console within different browsers. In addition, the browser-owned objects such as Console, alert, confirm, prompt, etc. can only be valid depending on the browser.
In step S220, a corresponding time stamp is added to the program log.
In an exemplary embodiment of the present invention, the adding the corresponding time stamp to the program log includes:
generating a corresponding time stamp for the generation time of the user behavior;
each program log generated corresponds to a time stamp.
In an exemplary embodiment of the present invention, after adding the corresponding timestamp to the program log, the method further includes:
generating a corresponding log level according to the program log;
wherein the log levels include: INFO, DEBUG, WARN, and ERROR.
Dividing the log information into four levels, wherein the four levels are as follows from low to high: DEBUG, INFO, WARN, and ERROR. The logging information at the DEBUG level is used for recording events helpful for debugging the application program, the logging information at the INFO level is used for recording events interested by a user, the logging information at the WARN level is used for recording events which are potentially harmful to the running of the application program, and the logging information at the ERROR level is used for recording occurring ERROR events (the ERROR events do not influence the proceeding of the process).
In the step, the log level of the program log is acquired and displayed, so that the log is convenient to manage and inquire subsequently. By distinguishing, marking and displaying different levels, the log can be analyzed and prejudged visually, and follow-up operation is facilitated.
In step S230, the program log is integrated into the application of the terminal device and initialized, and the unique identifier of the terminal device is obtained.
The terminal equipment in the invention can be a user terminal and also can be a business service terminal, and specifically comprises the following steps: when the terminal equipment is a user terminal, the unique identifier of the terminal equipment is a terminal machine number; in an exemplary embodiment of the present invention, when the terminal device is a business service terminal, the unique identifier of the terminal device is a tax staff login account.
For example, the user terminal is a terminal for taxpayers, and each machine is assigned with a unique terminal number; however, the business service terminal for the tax staff is usually a common PC, which cannot be managed by the hardware device itself, but can be identified and managed by the login account number of the tax staff, for example, the job number of the tax staff is used as a unique identifier.
Therefore, when the log of the user behavior is subsequently uploaded, the log information carrying the serial number of the terminal machine or the work number of the tax staff can be uploaded to the log management terminal, so that the log management terminal can inquire and manage according to the information.
In an exemplary embodiment of the invention, the log service is integrated in the terminal device with the least code amount, and after the integration, whether the log service is available or not does not affect the normal operation of the program, if the log service is available, the log is newly generated, and if the log service is unavailable, the log file is output to the log management terminal.
In an exemplary embodiment of the invention, the js file of the log service is introduced by rewriting the browser native container object. Then, initialization is carried out, except that the unique identifier of the terminal equipment is added, a service address can be set, namely when a page is initialized, the service address is acquired to log service firstly, and then the service address is used as an initialization parameter.
It should be noted that, in the present invention, a high-performance open-source event-driven framework is adopted, so that it is ensured that a single service can cope with a QPS of 4000+, and throughput can be continuously improved through lateral expansion, so that in the scheme of the present invention, a log service is integrated into an application of a terminal device in a low-intrusive design manner, and processing of the log service in a high-concurrency scenario can be coped with.
In step S240, classification is performed based on the unique identifier of the terminal device, and a corresponding identifier classification is added to the program log.
The purpose of the classification of the unique identifier in this step is to: 1) the user side or the server side is distinguished, so that the user behaviors are respectively stored and displayed conveniently; 2) when the number of the user terminals or the number of the business service terminals is large, the user terminals can be further classified, for example, the user terminals can be classified correspondingly according to the areas where the positioning information is located, or the business service terminals can be classified correspondingly according to the authority ranges of the tax staff, so that the logs can be managed in a more detailed and accurate manner.
Fig. 3 is a schematic diagram of an architecture for generating a log service according to an embodiment of the present invention, and as shown in fig. 3, the log service is generated by monitoring user behaviors of a terminal device and recording a log, and log data is stored in a background server.
In addition, as shown in fig. 3, after the log is generated, the log can be queried as needed, so that the operation and maintenance personnel can quickly locate the problem and solve the problem.
In an exemplary embodiment of the present invention, further comprising:
acquiring a query request;
and querying the program log of the log management terminal according to the query request to obtain a query result, wherein the query request comprises one or more of a timestamp, a log grade and an identification classification.
Log time stamp is not existed in native browser console, but the invention can facilitate log management and query by adding time stamp, log grade, identification classification and the like in log service.
Fig. 4 is a schematic interface diagram of log query in an implementation of the present invention, and as shown in fig. 4, corresponding log data can be queried and displayed by selecting a terminal machine number, a timestamp, and the like, and a log level and log content can also be displayed. Wherein the counter number in fig. 4 refers to the machine code of the user terminal.
In summary, based on the web terminal log management method provided by the present invention, on one hand, since the program log is directly integrated in the application of the terminal device, the log can be integrated in the terminal device with a smaller code amount, so as to implement a lightweight log service scheme; on the other hand, by adding the timestamp and the identification classification of the terminal equipment, the query and the management are facilitated.
Corresponding to the above community management method based on the block chain, fig. 5 is a schematic diagram of a web terminal log management apparatus according to another embodiment of the present invention, and referring to fig. 5, the apparatus 500 includes: a log generation module 510, a timestamp module 520, an identification module 530, and a classification module 540.
The log generation module 510 is configured to obtain user behavior and generate a program log by responding to the user behavior; the timestamp module 520 is configured to add a corresponding timestamp to the program log; the identification module 530 is configured to integrate the program log in an application of the terminal device and initialize the program log to obtain a unique identifier of the terminal device; the classification module 540 is configured to classify based on the unique identifier of the terminal device and add a corresponding identifier classification to the program log.
For details that are not disclosed in the embodiment of the apparatus of the present disclosure, please refer to the embodiment of the method for managing log based on a web terminal described above in the present disclosure for details that are not disclosed in the embodiment of the apparatus of the present disclosure, because each functional module of the apparatus for managing log based on a web terminal according to the example embodiment of the method for managing log based on a web terminal described above in the present disclosure corresponds to the step of the example embodiment of the method for managing log based on a web terminal described above.
In summary, with the web terminal log management apparatus provided in the embodiment of the present disclosure, on one hand, because the program log is directly integrated in the application of the terminal device, the log can be integrated in the terminal device with a smaller code amount, so as to implement a lightweight log service scheme; on the other hand, by adding the timestamp and the identification classification of the terminal equipment, the query and the management are facilitated.
Referring now to FIG. 6, a block diagram of a computer system 0 suitable for use in implementing an electronic device of an embodiment of the invention is shown. The computer system 600 of the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of the use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for system operation are also stored. The CPU601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the method for block chain-based medical data management as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 2: step S210, obtaining user behavior, and generating a program log by responding to the user behavior; step S220, adding a corresponding time stamp to the program log; step S230, integrating the program log in the application of the terminal equipment, initializing and acquiring the unique identifier of the terminal equipment; step S240, classifying the unique identifier of the terminal device, and adding a corresponding identifier classification for the program log.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A web terminal log management method is characterized by comprising the following steps:
acquiring user behaviors, and generating a program log by responding to the user behaviors;
adding a corresponding time stamp to the program log;
integrating the program log in the application of the terminal equipment, initializing the program log and acquiring the unique identifier of the terminal equipment;
and classifying based on the unique identifier of the terminal equipment, and adding corresponding identifier classification aiming at the program log.
2. The web terminal log management method of claim 1, after generating a program log by responding to the user behavior, further comprising:
judging the program log, and if the program log is available, adding the program log to a log management terminal; and if the program log is unavailable, adding the original log before the user action occurs to the log management terminal.
3. The web terminal log management method of claim 1, wherein the adding the corresponding time stamp to the program log comprises:
generating a corresponding time stamp for the generation time of the user behavior;
each program log generated corresponds to a time stamp.
4. The web terminal log management method of claim 2, wherein after adding the corresponding time stamp to the program log, further comprising:
generating a corresponding log level according to the program log;
wherein the log levels include: INFO, DEBUG, WARN, and ERROR.
5. The web terminal log management method of claim 1, wherein when the terminal device is a user terminal, the unique identifier of the terminal device is a terminal machine number.
6. The web terminal log management method of claim 1, wherein when the terminal device is a business service terminal, the unique identifier of the terminal device is a tax clerk login account.
7. The web terminal log management method of claim 4, further comprising:
acquiring a query request;
and querying the program log of the log management terminal according to the query request to obtain a query result, wherein the query request comprises one or more of a timestamp, a log grade and an identification classification.
8. A web terminal log management apparatus, comprising:
the log generation module is configured to acquire user behaviors and generate program logs by responding to the user behaviors;
a timestamp module configured to add a corresponding timestamp to the program log;
the identification module is configured to integrate the program log in the application of the terminal equipment, initialize the program log and acquire the unique identification of the terminal equipment;
and the classification module is configured to classify based on the unique identifier of the terminal equipment and add corresponding identifier classification for the program log.
9. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the web terminal log management method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the web terminal log management method of any one of claims 1 to 7.
CN202010003963.2A 2020-01-03 2020-01-03 Web terminal log management method, device, medium and electronic equipment Pending CN111241048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010003963.2A CN111241048A (en) 2020-01-03 2020-01-03 Web terminal log management method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010003963.2A CN111241048A (en) 2020-01-03 2020-01-03 Web terminal log management method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111241048A true CN111241048A (en) 2020-06-05

Family

ID=70872126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010003963.2A Pending CN111241048A (en) 2020-01-03 2020-01-03 Web terminal log management method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111241048A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422345A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Log transmission method and device, storage medium and electronic device
CN113407415A (en) * 2021-06-28 2021-09-17 四川虹美智能科技有限公司 Log management method and device of intelligent terminal

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1115904A (en) * 1997-06-20 1999-01-22 Japan Digital Lab Co Ltd Journalized data recording method, recording medium recording journalized data, automatic link correction method for journalized data, and recording medium recording automatic link correction program for journalized data
JP2007304851A (en) * 2006-05-11 2007-11-22 Realit Co Ltd Document input terminal, document management system, document management method, and document management program
CN103631699A (en) * 2012-08-28 2014-03-12 纽海信息技术(上海)有限公司 Log management system and method for log monitoring, acquiring and querying
US20160142276A1 (en) * 2014-11-13 2016-05-19 Hitachi, Ltd. Communication system, managment server, and monitoring apparatus
CN105677663A (en) * 2014-11-19 2016-06-15 航天信息股份有限公司 Method and system for unified management of self-service tax-conducting terminals
CN106209455A (en) * 2016-07-11 2016-12-07 税友软件集团股份有限公司 The associated services Fault Locating Method of a kind of cross-system weak coupling and system
CN108268545A (en) * 2016-12-30 2018-07-10 中移(杭州)信息技术有限公司 A kind of method and apparatus of the establishment in the user tag library of classification
CN109240917A (en) * 2018-08-13 2019-01-18 山东中创软件工程股份有限公司 A kind of blog management method and relevant apparatus
CN109242332A (en) * 2018-09-25 2019-01-18 广东中标数据科技股份有限公司 A kind of monitoring analysis system of tax collection and administration data, method and device
CN109542741A (en) * 2018-10-11 2019-03-29 平安科技(深圳)有限公司 The automatic packet storage approach of log, device, computer equipment and storage medium
CN109885546A (en) * 2019-02-15 2019-06-14 北京金山云网络技术有限公司 User behaviors log storage method, device and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1115904A (en) * 1997-06-20 1999-01-22 Japan Digital Lab Co Ltd Journalized data recording method, recording medium recording journalized data, automatic link correction method for journalized data, and recording medium recording automatic link correction program for journalized data
JP2007304851A (en) * 2006-05-11 2007-11-22 Realit Co Ltd Document input terminal, document management system, document management method, and document management program
CN103631699A (en) * 2012-08-28 2014-03-12 纽海信息技术(上海)有限公司 Log management system and method for log monitoring, acquiring and querying
US20160142276A1 (en) * 2014-11-13 2016-05-19 Hitachi, Ltd. Communication system, managment server, and monitoring apparatus
CN105677663A (en) * 2014-11-19 2016-06-15 航天信息股份有限公司 Method and system for unified management of self-service tax-conducting terminals
CN106209455A (en) * 2016-07-11 2016-12-07 税友软件集团股份有限公司 The associated services Fault Locating Method of a kind of cross-system weak coupling and system
CN108268545A (en) * 2016-12-30 2018-07-10 中移(杭州)信息技术有限公司 A kind of method and apparatus of the establishment in the user tag library of classification
CN109240917A (en) * 2018-08-13 2019-01-18 山东中创软件工程股份有限公司 A kind of blog management method and relevant apparatus
CN109242332A (en) * 2018-09-25 2019-01-18 广东中标数据科技股份有限公司 A kind of monitoring analysis system of tax collection and administration data, method and device
CN109542741A (en) * 2018-10-11 2019-03-29 平安科技(深圳)有限公司 The automatic packet storage approach of log, device, computer equipment and storage medium
CN109885546A (en) * 2019-02-15 2019-06-14 北京金山云网络技术有限公司 User behaviors log storage method, device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姜福杰等: "税收系统中数据库技术的开发与实现", 《自动化与仪表》 *
曹秀竹: "哈经开区局税务信息系统网络安全机制的设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112422345A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Log transmission method and device, storage medium and electronic device
CN113407415A (en) * 2021-06-28 2021-09-17 四川虹美智能科技有限公司 Log management method and device of intelligent terminal

Similar Documents

Publication Publication Date Title
CN109344170B (en) Stream data processing method, system, electronic device and readable storage medium
CN111190888A (en) Method and device for managing graph database cluster
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN110708212B (en) Method and device for tracking call link in distributed system
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
CN115587575A (en) Data table creation method, target data query method, device and equipment
CN111241048A (en) Web terminal log management method, device, medium and electronic equipment
CN110928594A (en) Service development method and platform
US9141460B2 (en) Identify failed components during data collection
CN115904527A (en) Data processing method, device, equipment and medium
CN111448551A (en) Method and system for tracking application activity data from a remote device and generating corrective action data structures for the remote device
CN113515271B (en) Service code generation method and device, electronic equipment and readable storage medium
CN115033634A (en) Data acquisition method, data acquisition device, electronic equipment and medium
CN115203178A (en) Data quality inspection method and device, electronic equipment and storage medium
CN113487224A (en) Content processing method, apparatus, device, medium, and program product
CN114153703A (en) Micro-service exception positioning method and device, electronic equipment and program product
CN111679885A (en) Method, device, medium and electronic equipment for determining virtual machine drift
CN113342619A (en) Log monitoring method and system, electronic device and readable medium
CN113495498A (en) Simulation method, simulator, device, and medium for hardware device
CN111290870A (en) Method and device for detecting abnormity
CN116401138B (en) Operating system running state detection method and device, electronic equipment and medium
CN113778350A (en) Log printing method and device
CN111159010A (en) Defect collecting method, defect reporting method and related device
CN114661794A (en) Service data processing method, device, equipment and medium
CN117827624A (en) Function test method, device 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200605