CN112579009A - Error log printing method and device, storage medium and electronic equipment - Google Patents

Error log printing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112579009A
CN112579009A CN201910953071.6A CN201910953071A CN112579009A CN 112579009 A CN112579009 A CN 112579009A CN 201910953071 A CN201910953071 A CN 201910953071A CN 112579009 A CN112579009 A CN 112579009A
Authority
CN
China
Prior art keywords
character string
error
preset
determining
message
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
CN201910953071.6A
Other languages
Chinese (zh)
Inventor
陈集锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910953071.6A priority Critical patent/CN112579009A/en
Publication of CN112579009A publication Critical patent/CN112579009A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1211Improving printing performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/121Facilitating exception or error detection and recovery, e.g. fault, media or consumables depleted
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a method and a device for printing an error log, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring an error-reported character string in a programming component; when the character string contains the preset keyword, the error log corresponding to the character string is determined not to be printed, and the problems that in the related technology, only one operating system can establish connection according to the received message under the multi-machine deployment state of the programming assembly, and other operating systems receiving the message continuously report errors, so that resource waste is caused are solved.

Description

Error log printing method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer programming technologies, and in particular, to a method and an apparatus for printing an error log, a storage medium, and an electronic device.
Background
When a programming component (such as activemq) is used for multi-machine deployment, the same programming component can be deployed in a plurality of operating systems, and high availability of the programming component is ensured. In a multi-machine deployment state, the mechanism of the virtual theme topic can enable the message to be distributed uniformly, and each operating system is guaranteed to receive the message, so that the message can be consumed repeatedly. Under the mechanism of virtual topic, a programming component in each operating system corresponds to an identifier for uniquely identifying the corresponding operating system, only one operating system can establish a connection relationship according to a received message each time, other operating systems which are not connected can report errors continuously, error report logs are printed and popped continuously, resources are wasted, and normal use of a user is influenced.
In the related art, a reasonable solution is not available at present for the problem that only one operating system can establish connection according to received messages in a multi-machine deployment state of a programming component, and other operating systems receiving the messages continuously report errors to cause resource waste.
Disclosure of Invention
The embodiment of the application provides a method and a device for printing an error log, a storage medium and electronic equipment, which are used for at least solving the problems that in the related art, only one operating system can establish connection according to a received message under the condition that a programming component is deployed in a multi-machine mode, and other operating systems receiving the message continuously report errors, so that resource waste is caused.
According to an embodiment of the present application, there is provided a method of printing an error log, including: acquiring an error-reported character string in a programming component; and when the character string contains the preset keyword, determining not to print the error log corresponding to the character string.
Optionally, before the obtaining of the error-reported character string in the programming component, the method further includes: acquiring an error message in the programming component, and determining an error category corresponding to the error message, wherein the error category is used for determining the error character string.
Optionally, the obtaining the error-reported character string in the programming component includes: and positioning the character string corresponding to the error message in the source code of the programming component according to the error category corresponding to the error message.
Optionally, before determining not to print the error log corresponding to the character string, the method further includes: acquiring the preset keywords before splicing the error message into the character string, wherein the preset keywords comprise one or more keywords; and sequentially judging whether the character string comprises the preset keywords according to a preset sequence, wherein each preset keyword corresponds to one judgment process.
Optionally, when the character string includes a preset keyword, determining not to print the error log corresponding to the character string includes: judging whether the character string comprises a first preset keyword or not; when the character string comprises a first preset keyword, judging whether the character string comprises a second preset keyword or not; and when all preset keywords are contained in the character string, determining not to print an error log corresponding to the character string.
According to another embodiment of the present application, there is also provided an error log printing apparatus including: the first acquisition module is used for acquiring the character string with the error report in the programming component; and the determining module is used for determining not to print the error log corresponding to the character string when the character string contains the preset keyword.
Optionally, the apparatus further comprises: and the second acquisition module is used for acquiring the error report message in the programming component and determining the error category corresponding to the error report message, wherein the error category is used for determining the error report character string.
Optionally, the obtaining module includes: and the positioning unit is used for positioning the character string corresponding to the error report message in the source code of the programming component according to the error category corresponding to the error report message.
Optionally, the apparatus further comprises: a third obtaining module, configured to obtain the preset keywords before splicing the error report message into the character string, where the preset keywords include one or more keywords; and the judging module is used for sequentially judging whether the character string comprises the preset keywords according to a preset sequence, wherein each preset keyword corresponds to one judging process.
Optionally, the determining module includes: the first judging unit is used for judging whether the character string comprises a first preset keyword or not; the second judging unit is used for judging whether the character string contains a second preset keyword or not when the character string contains the first preset keyword; and the determining unit is used for determining not to print the error log corresponding to the character string when all preset keywords are contained in the character string.
According to another embodiment of the present application, there is also provided a computer-readable storage medium storing a program for implementing the method of printing an error log according to any one of the above method embodiments when the program is executed.
There is also provided, in accordance with another embodiment of the present application, an electronic device, including at least one processor, at least one memory, and a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to call the program instructions in the memory to execute the method for printing the error log according to any one of the above method embodiments.
According to the embodiment of the application, the character string with the error report is obtained from the programming component; when the character string contains the preset keyword, the error log corresponding to the character string is determined not to be printed, the problems that in the related technology, only one operating system can establish connection according to the received message under the multi-machine deployment state of the programming assembly, and other operating systems receiving the message continuously report errors to cause resource waste are solved, the error log is not printed for the specific error report through the screening of the keyword, the repeated error report of the operating system is avoided, the resource waste is reduced, and the user experience goodness is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flowchart of a method for printing an error log according to an embodiment of the present application;
FIG. 2 is a hardware environment diagram of a method for printing an error log according to an embodiment of the disclosure;
FIG. 3 is a block diagram of the structure of an error log printing apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of an alternative device architecture according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The embodiment of the application provides a method for printing an error log. Fig. 1 is a flowchart of a method for printing an error log in an embodiment of the present application, where printing includes displaying the log, performing preprocessing before displaying, outputting the log to a designated device or a designated system, and the like, and is not limited to printing the log, as shown in fig. 1, and the method includes:
step S102, acquiring an error-reported character string in a programming component;
and step S104, when the character string contains the preset keyword, determining not to print the error log corresponding to the character string.
By the method, the character string with the error is acquired from the programming component; when the character string contains the preset keyword, the error log corresponding to the character string is determined not to be printed, the problems that in the related technology, only one operating system can establish connection according to the received message under the multi-machine deployment state of the programming assembly, and other operating systems receiving the message continuously report errors to cause resource waste are solved, the error log is not printed for the specific error report through the screening of the keyword, the repeated error report of the operating system is avoided, the resource waste is reduced, and the user experience goodness is improved.
Fig. 2 is a hardware environment diagram of a method for printing an error log according to an embodiment of the present disclosure. Optionally, in this embodiment, the filtering information configuration method may be applied to a hardware environment formed by the server 202 and the user terminal 204 shown in fig. 2, and the execution subject of each step shown in fig. 1 may be, but is not limited to, the server 202. As shown in fig. 2, the server 202 obtains the error reporting character string in the programming component, checks whether the character string contains a preset keyword, determines that the current error reporting is not an error reporting that needs to be filtered when the preset keyword does not exist, and can print an error log on the display interface of the user terminal 204, and determines that the current error reporting is an error reporting that needs to be filtered when the preset keyword is contained in the character string, that is, does not need to remind the user, and determines that the error log is not printed on the user terminal 204. The server 202 and the user terminal 204 may implement data interaction through a network, which may include but is not limited to a wireless network or a wired network. Wherein, this wireless network includes: bluetooth, WIFI, and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The above is merely an example, and this is not limited in this embodiment.
The processing steps in server 202 include:
step S202, acquiring error-reported character strings in a programming component;
step S204, when the character string contains the preset keyword, determining not to print the error log corresponding to the character string.
It should be noted that the programming component related to the embodiment of the present application may be an ActiveMQ, the Apache ActiveMQ is an open source code message middleware developed by an Apache software foundation, and the ActiveMQ is a pure Java program and can be executed only by supporting a Java virtual machine by an operating system.
The active mq is used for multi-machine deployment (the same active MQ is deployed on a plurality of operating systems), a topic virtual theme is adopted, and the multi-machine deployment is used for ensuring high availability of the active mq. In this case, the following may occur: the mechanism of virtual topic will make the message evenly distributed, ensuring that each system receives the message, which will cause the message to be consumed repeatedly. In this case, the clientId of the user joining the MQ ensures that only one consumer can connect, a mechanism that keeps other systems that do not connect up reporting errors. And the excessive error logs make the troubleshooting difficult, so that the source code of the MQ can be modified, and unnecessary data can be filtered from the source code.
The keyword filtering scheme used in the embodiment of the present application is to solve the above problem.
Optionally, before obtaining the error-reported character string in the programming component, the method further includes: and acquiring the error report message in the programming component, and determining an error category corresponding to the error report message, wherein the error category is used for determining the error report character string.
When the programming component acquires the error report message, firstly, the message type is determined, namely, the message type directly enters the error report class, and the error report character string is found.
Optionally, the obtaining of the error-reported character string in the programming component includes: and positioning the character string corresponding to the error message in the source code of the programming component according to the error category corresponding to the error message.
Optionally, when the character string contains a preset keyword, before determining not to print the error log corresponding to the character string, the method further includes: acquiring preset keywords before splicing the error report message into the character string, wherein the preset keywords comprise one or more keywords; and sequentially judging whether the character string comprises preset keywords according to a preset sequence, wherein each preset keyword corresponds to one judgment process.
Before the source code is modified, an error-reporting class is entered, an error-reporting character string is found, the source code is observed, and an error log can be found and typed out at an else branch. The printing is performed before splicing the message msg with the character string with error report by using a splicing instruction append, and then printing the message msg through an else branch.
In the embodiment of the application, by modifying the source code, before the message msg is spliced with the error-reported character string by using the splicing instruction append, the character string is taken out, a layer of judgment is made to determine whether the message msg contains the keywords to be filtered, and if the message msg contains the keywords to be filtered, the error log does not need to be printed.
Optionally, when the preset keyword is included in the character string, determining that the error log corresponding to the character string is not printed includes: judging whether the character string comprises a first preset keyword or not; when the character string comprises a first preset keyword, judging whether the character string comprises a second preset keyword or not; and when all the preset keywords are contained in the character string, determining not to print the error log corresponding to the character string.
In the embodiment of the application, log filtering can be performed through the springboot configuration, that is, as long as the character string of the error occurrence is filtered, the error log is not printed, but the granularity of the filtering is coarse, other important messages can be filtered, and therefore, keywords can be set, for example, when the character string corresponding to the information of the error contains the keyword of "alread", the error log is determined not to be printed. Of course, the keywords herein may also include keywords in other arbitrary configurations, which is not limited in this embodiment of the application.
The keywords can be provided in plurality, namely, multi-level filtering. For example, three layers of filtering are set, namely three keywords, after the first layer of filtering, if the first layer of keywords are contained in the character string, the second layer of filtering is continued, and if the first layer of keywords are not contained, the error log is directly printed. And after the second layer filtering, if the second layer key words are contained, continuing to perform the third layer filtering, and if the second layer key words are not contained, directly printing an error log. In the third layer of filtering, if the third layer of keywords are contained, the error log corresponding to the current character string is determined not to be printed, and if the third layer of keywords are not contained in the character string, the error log corresponding to the current character string is printed.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
In this embodiment, a printing apparatus for an error log is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a configuration of an error log printing apparatus according to an embodiment of the present application, and as shown in fig. 3, the apparatus includes:
a first obtaining module 302, configured to obtain an error-reported character string in a programming component;
the determining module 304 is configured to determine not to print the error log corresponding to the character string when the character string includes the preset keyword.
Optionally, the apparatus further comprises: and the second acquisition module is used for acquiring the error report message in the programming component and determining the error category corresponding to the error report message, wherein the error category is used for determining the error report character string.
Optionally, the obtaining module includes: and the positioning unit is used for positioning the character string corresponding to the error report message in the source code of the programming component according to the error category corresponding to the error report message.
Optionally, the apparatus further comprises: a third obtaining module, configured to obtain the preset keywords before splicing the error report message into the character string, where the preset keywords include one or more keywords; and the judging module is used for sequentially judging whether the character string comprises the preset keywords according to a preset sequence, wherein each preset keyword corresponds to one judging process.
Optionally, the determining module includes: the first judging unit is used for judging whether the character string comprises a first preset keyword or not; the second judging unit is used for judging whether the character string contains a second preset keyword or not when the character string contains the first preset keyword; and the determining unit is used for determining not to print the error log corresponding to the character string when all preset keywords are contained in the character string.
The printing device of the error log comprises a processor and a memory, wherein the first obtaining module 302, the determining module 304 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set with one or more than one, the character string which reports errors is obtained from the programming component, whether the character string contains the preset keywords or not is checked, and when the preset keywords do not exist, the current error reporting is determined not to be the error reporting which needs to be filtered, so that the problems that in the related technology, only one operating system can establish connection according to the received message under the multi-machine deployment state of the programming component, and other operating systems which receive the message continuously report errors to cause resource waste are solved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present application provides a storage medium having a program stored thereon, the program implementing the method of printing the error log when executed by a processor.
The embodiment of the application provides a processor, wherein the processor is used for running a program, and the printing method of the error log is executed when the program runs.
Fig. 4 is a block diagram of an alternative device architecture according to an embodiment of the present application. The embodiment of the present application provides a device, the device 40 includes at least one processor 401, and at least one memory 402, a bus 403; the processor and the memory complete mutual communication through a bus; the processor is used for calling program instructions in the memory so as to execute the printing method of the error log. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
s1, acquiring the character string with error report in the programming component;
and S2, when the character string contains the preset keyword, determining not to print the error log corresponding to the character string.
Optionally, the computer program product provided by the present application is further adapted to execute the program with the following method steps:
and acquiring an error message and an error category corresponding to the error message in the programming component, wherein the error category is used for determining the error character string.
Optionally, the computer program product provided by the present application is further adapted to execute the program with the following method steps:
and positioning the character string corresponding to the error message in the source code of the programming component according to the error category corresponding to the error message.
Optionally, the computer program product provided by the present application is further adapted to execute the program with the following method steps:
acquiring the preset keywords before splicing the error message into the character string, wherein the preset keywords comprise one or more keywords; and sequentially judging whether the character string comprises the preset keywords according to a preset sequence, wherein each preset keyword corresponds to one judgment process.
Optionally, the computer program product provided by the present application is further adapted to execute the program with the following method steps:
judging whether the character string comprises a first preset keyword or not; when the character string comprises a first preset keyword, judging whether the character string comprises a second preset keyword or not; and when all preset keywords are contained in the character string, determining not to print an error log corresponding to the character string.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of printing an error log, comprising:
acquiring an error-reported character string in a programming component;
and when the character string contains the preset keyword, determining not to print the error log corresponding to the character string.
2. The method of claim 1, wherein prior to obtaining the error-flagged character string in the programming component, the method further comprises:
acquiring an error message in the programming component, and determining an error category corresponding to the error message, wherein the error category is used for determining the error character string.
3. The method of claim 2, wherein obtaining the error-reported string in the programming component comprises:
and positioning the character string corresponding to the error message in the source code of the programming component according to the error category corresponding to the error message.
4. The method of claim 2, wherein prior to determining not to print an error log corresponding to the string, the method further comprises:
acquiring the preset keywords before splicing the error message into the character string, wherein the preset keywords comprise one or more keywords;
and sequentially judging whether the character string comprises the preset keywords according to a preset sequence, wherein each preset keyword corresponds to one judgment process.
5. The method according to any one of claims 1 to 4, wherein determining not to print the error log corresponding to the character string when the character string contains a preset keyword comprises:
judging whether the character string comprises a first preset keyword or not;
when the character string comprises a first preset keyword, judging whether the character string comprises a second preset keyword or not;
and when all preset keywords are contained in the character string, determining not to print an error log corresponding to the character string.
6. An error log printing apparatus, comprising:
the first acquisition module is used for acquiring the character string with the error report in the programming component;
and the determining module is used for determining not to print the error log corresponding to the character string when the character string contains the preset keyword.
7. The apparatus of claim 6, further comprising:
and the second acquisition module is used for acquiring the error report message in the programming component and determining the error category corresponding to the error report message, wherein the error category is used for determining the error report character string.
8. The apparatus of claim 7, further comprising:
a third obtaining module, configured to obtain the preset keywords before splicing the error report message into the character string, where the preset keywords include one or more keywords;
and the judging module is used for sequentially judging whether the character string comprises the preset keywords according to a preset sequence, wherein each preset keyword corresponds to one judging process.
9. A computer-readable storage medium storing a program for implementing the method of printing an error log according to any one of claims 1 to 5 when the program is executed.
10. An electronic device comprising at least one processor, at least one memory, and a bus; the processor and the memory complete mutual communication through the bus; the processor is configured to invoke program instructions in the memory to perform the method of any of claims 1-5.
CN201910953071.6A 2019-09-30 2019-09-30 Error log printing method and device, storage medium and electronic equipment Pending CN112579009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910953071.6A CN112579009A (en) 2019-09-30 2019-09-30 Error log printing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910953071.6A CN112579009A (en) 2019-09-30 2019-09-30 Error log printing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112579009A true CN112579009A (en) 2021-03-30

Family

ID=75117242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910953071.6A Pending CN112579009A (en) 2019-09-30 2019-09-30 Error log printing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112579009A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544298A (en) * 2013-10-30 2014-01-29 曙光信息产业(北京)有限公司 Log analysis method and analysis device for component
CN103853743A (en) * 2012-11-29 2014-06-11 百度在线网络技术(北京)有限公司 Distributed system and log query method thereof
GB201614035D0 (en) * 2016-08-16 2016-09-28 Imagination Tech Ltd String logging in an embedded system
CN106202511A (en) * 2016-07-21 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of alarm method based on log analysis and system
CN107220341A (en) * 2017-05-26 2017-09-29 北京中电普华信息技术有限公司 A kind of log analysis method and Log Analysis System
CN107832196A (en) * 2017-11-28 2018-03-23 广东金赋科技股份有限公司 A kind of monitoring device and monitoring method for real-time logs anomalous content
CN108038207A (en) * 2017-12-15 2018-05-15 暴风集团股份有限公司 A kind of daily record data processing system, method and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853743A (en) * 2012-11-29 2014-06-11 百度在线网络技术(北京)有限公司 Distributed system and log query method thereof
CN103544298A (en) * 2013-10-30 2014-01-29 曙光信息产业(北京)有限公司 Log analysis method and analysis device for component
CN106202511A (en) * 2016-07-21 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of alarm method based on log analysis and system
GB201614035D0 (en) * 2016-08-16 2016-09-28 Imagination Tech Ltd String logging in an embedded system
CN107220341A (en) * 2017-05-26 2017-09-29 北京中电普华信息技术有限公司 A kind of log analysis method and Log Analysis System
CN107832196A (en) * 2017-11-28 2018-03-23 广东金赋科技股份有限公司 A kind of monitoring device and monitoring method for real-time logs anomalous content
CN108038207A (en) * 2017-12-15 2018-05-15 暴风集团股份有限公司 A kind of daily record data processing system, method and server

Similar Documents

Publication Publication Date Title
CN106897205B (en) Test data generation method and device
CN106886434B (en) Distributed application installation method and device
CN109857516B (en) Cluster migration method and device based on container
CN108255708A (en) Method, apparatus, storage medium and the equipment of production file are accessed in test environment
CN112346761A (en) Front-end resource online method, equipment, system and storage medium
CN112738181B (en) Method, device and server for cluster external IP access
CN106293890B (en) A kind of method and device for business processing based on complexity
CN111240998B (en) Test case processing method and device
CN112114804A (en) Application program generation method, device and system
CN111949297A (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN112579009A (en) Error log printing method and device, storage medium and electronic equipment
CN106357704A (en) Method and device for invoking service on basis of development environments
CN108681492A (en) Data processing method and device
CN108628615A (en) A kind of discarded code detection method, device and equipment
CN110750271B (en) Service aggregation, method and device for executing aggregated service and electronic equipment
CN106844056B (en) Hadoop big data platform multi-tenant job management method and system
CN112579189A (en) Configuration file updating method and device
CN111026502A (en) Business debugging architecture creating method and device, electronic equipment and storage medium
CN105094773A (en) Module function reusing method and system
CN111124712A (en) Event notification method, device, server and storage medium
CN117527949B (en) Cloud mobile phone operation monitoring method, system and storage medium
CN112486501B (en) Spark application deployment management method and related equipment
CN111124931B (en) Java code compliance checking method and device
CN114124703B (en) Multi-environment service configuration method, equipment and medium based on Kubernetes
CN110321250B (en) Disaster recovery method and device for application

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