WO2021155683A1 - 日志打印方法、装置、电子设备和存储介质 - Google Patents

日志打印方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2021155683A1
WO2021155683A1 PCT/CN2020/125141 CN2020125141W WO2021155683A1 WO 2021155683 A1 WO2021155683 A1 WO 2021155683A1 CN 2020125141 W CN2020125141 W CN 2020125141W WO 2021155683 A1 WO2021155683 A1 WO 2021155683A1
Authority
WO
WIPO (PCT)
Prior art keywords
log
target system
target
system log
level
Prior art date
Application number
PCT/CN2020/125141
Other languages
English (en)
French (fr)
Inventor
李毅
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021155683A1 publication Critical patent/WO2021155683A1/zh

Links

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/1218Reducing or saving of used resources, e.g. avoiding waste of consumables or improving usage of hardware resources
    • 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
    • G06F3/1268Job submission, e.g. submitting print job order or request not the print data itself
    • 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
    • G06F3/1273Print job history, e.g. logging, accounting, tracking

Definitions

  • This application relates to the technical field of cloud services, in particular to log-based printing methods, devices, electronic equipment, and storage media.
  • the log is mainly used to record the problems generated during the operation of the system, and the operation and maintenance personnel can analyze the system failure through the log.
  • the operation and maintenance personnel generally set the printing standard of the log in the system, and the log in the system whose log level meets the printing standard can be printed.
  • the logs generated when the business logic in the system executes business events are used as logs for the operation and maintenance personnel to analyze whether there is a problem with the business logic, and will not be used during the normal operation of the system.
  • the operation and maintenance personnel set the log level of these logs to low A certain log level of the printing standard.
  • this application provides a log printing method, device, electronic equipment, and storage medium.
  • this application provides a log printing method, including: obtaining a target system log generated when the system executes an event, the target system log carrying the business type of the system execution event and the system execution event Event type; if it is determined that the target system log is a system log that needs to be printed in the system according to the service type and the event type, a log level adjustment parameter is added to the target system log, and the log level adjustment parameter is A preset parameter for modifying the log level of the system log; the log level of the target system log is adjusted according to the log level carried in the target system log, so that the adjusted log level of the target system log is the same as the log level of the target system log.
  • the printing standard of the log in the system meets; and the adjusted target system log is sent to the printing process to facilitate the operation of printing the target system log.
  • the present application provides a log printing device, including: a first obtaining unit, configured to obtain a target system log generated when the system executes an event, the target system log carries the service type of the system execution event And the event type of the system execution event; an adding unit configured to add to the target system log if the target system log is determined to be a system log that needs to be printed in the system according to the service type and the event type Log level adjustment parameter, the log level adjustment parameter is a preset parameter used to modify the log level of the system log; the adjustment unit is used to adjust the parameter of the target system log according to the log level carried in the target system log Log level, so that the adjusted log level of the target system log conforms to the printing standard of the log in the system; the printing unit is used to send the adjusted target system log to the printing process to facilitate the execution of the printing The operation of the target system log.
  • a first obtaining unit configured to obtain a target system log generated when the system executes an event, the target system log carries the service type of the system execution event And the event
  • the present application provides an electronic device, including a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes The steps of the above log printing method, wherein, the log printing method includes: obtaining a target system log generated when the system executes an event, and the target system log carries the business type of the system executed event and the status of the system executed event Event type; if it is determined that the target system log is a system log that needs to be printed in the system according to the service type and the event type, a log level adjustment parameter is added to the target system log, and the log level adjustment parameter is A preset parameter for modifying the log level of the system log; the log level of the target system log is adjusted according to the log level carried in the target system log, so that the adjusted log level of the target system log is the same as the log level of the target system log.
  • the printing standard of the log in the system meets; and the adjusted target system log is sent to the printing process to facilitate the operation of printing the target system
  • the present application provides a storage medium storing computer-readable instructions that, when executed by one or more processors, cause one or more processors to execute the steps of the log printing method described above ,
  • the log printing method includes: obtaining a target system log generated when the system executes an event, the target system log carries the service type of the system execution event and the event type of the system execution event; The service type and the event type determine that the target system log is a system log that needs to be printed in the system, then a log level adjustment parameter is added to the target system log, and the log level adjustment parameter is preset for modification The parameter of the log level of the system log; the log level of the target system log is adjusted according to the log level carried in the target system log, so that the adjusted log level of the target system log matches the printing standard of the system log Compliant; sending the adjusted target system log to the printing process to facilitate the execution of the operation of printing the target system log.
  • the target system execution event is a system execution event that requires log printing
  • by adding a log level adjustment parameter to the target system log adjust the log level of the target system log according to the log level adjustment parameter carried in the target system log to make the adjustment
  • the log level of the target system log matches the printing standard of the log in the system, so that the target system log corresponding to the execution event of the target system is printed, and the log level of the system log generated by other system execution events does not conform to the log in the system Therefore, the generated system logs will not be printed, which avoids printing a large number of unnecessary logs, can effectively reduce the system resources occupied by printing logs, reduce the waste of system resources, and improve the utilization rate of system resources.
  • Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied.
  • Fig. 2 is a flowchart of a log printing method shown in an exemplary embodiment of the application.
  • FIG. 3 is a specific flowchart of step S220 of the log printing method according to an exemplary embodiment of the application.
  • FIG. 4 is a specific flowchart of step S320 of the log printing method according to an exemplary embodiment of the application.
  • FIG. 5 is a specific flowchart of step S230 of the log printing method according to an exemplary embodiment of the application.
  • Fig. 6 is a flowchart of a log printing method shown in an exemplary embodiment of the application.
  • Fig. 7 is a flowchart of a log printing method shown in an exemplary embodiment of the application.
  • FIG. 8 is a specific flowchart of step S720 of the log printing method according to an exemplary embodiment of the application.
  • Fig. 9 is a block diagram of a log printing device according to an embodiment of the present application.
  • Fig. 10 is an exemplary block diagram of an electronic device for implementing the log printing method described above according to an exemplary embodiment of the application.
  • Fig. 11 is a computer-readable storage medium for implementing the above-mentioned data verification method according to an exemplary embodiment of the application.
  • Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied.
  • the system architecture may include a client 101, a network 102, and a server 103.
  • the server 103 may be a server that provides business services
  • the client 101 is an electronic device used by a user that can implement corresponding business services.
  • the network 102 is a medium used to provide a communication link between the client 101 and the server 103.
  • the network 102 may include various connection types, such as wired communication links, wireless communication links, and so on.
  • the numbers of the client 101, the network 102, and the server 103 in FIG. 1 are merely illustrative. According to implementation needs, there may be any number of clients 101, networks 102, and servers 103.
  • the server 103 may be a server cluster composed of multiple servers.
  • the server 103 of the present application can be composed of multiple node servers of the blockchain server system.
  • the client 101 can upload the target system log to any node server of the blockchain server system, and the node server can print the target System log, in order to view the cause of the system failure according to the target system log, the node server can upload the cause of the system failure to other node servers in the blockchain server system, so that each node server can share this information, based on the blockchain data sharing Security and unchangeable features effectively ensure the security and reliability of information.
  • the target system log generated when the system executes the event execution in this embodiment can be generated on the client 101 or directly in the server 103.
  • the server 103 obtains the target system log generated when the system executes the event.
  • the target system log Carry the business type of the system execution event and the event type of the system execution event; if the target system log is determined to be the system log that needs to be printed in the system according to the business type and event type, add log level adjustment parameters to the target system log; according to the target system
  • the log level carried in the log adjusts the log level of the target system log, so that the log level of the adjusted target system log is consistent with the printing standard of the system log; the adjusted target system log is sent to the printing process for easy execution Print the operation of the target system log.
  • the target system execution event is a system execution event that requires log printing
  • by adding a log level adjustment parameter to the target system log adjust the log level of the target system log according to the log level adjustment parameter carried in the target system log to make the adjustment
  • the log level of the target system log matches the printing standard of the log in the system, so that the target system log corresponding to the execution event of the target system is printed, and the log level of the system log generated by other system execution events does not conform to the log in the system Therefore, the generated system logs will not be printed, which avoids printing a large number of unnecessary logs, can effectively reduce the system resources occupied by printing logs, reduce the waste of system resources, and improve the utilization rate of system resources.
  • the log printing method provided by the embodiment of the present application is generally executed by the server 103, and accordingly, the log printing device is generally set in the server 103.
  • the client 101 and the server 103 may also have similar functions, so as to execute the solution of the log printing method provided in the embodiments of the present application.
  • FIG. 2 is a flowchart of a log printing method shown in an exemplary embodiment of the present application.
  • the execution subject of the log printing method provided in the embodiment of the present application is a server corresponding to the business system, and the server may be as shown in FIG.
  • the log printing method of the server 103 shown in FIG. 2 includes steps S210 to S240, which are described in detail as follows.
  • Step S210 Obtain the target system log generated when the system executes the event execution.
  • the target system log carries the service type of the system execution event and the event type of the system execution event.
  • the business system mainly executes the processing of the business in the system domain through system execution events, and different system execution events execute the processing of different businesses in the system domain.
  • the operation and maintenance personnel need to solve the problem in time. Since the operation and maintenance personnel cannot affect the normal use of the system when analyzing the problems that occur, they generally execute the corresponding business actions through the corresponding system execution event, and the system executes the event to execute the corresponding business action.
  • the system log is printed.
  • the system log is used as a log for recording program debugging information. The operation and maintenance personnel can analyze and find out the corresponding problem based on the information recorded in the system log, which is convenient to solve the problem in time.
  • the service type of the system execution event may be preset by the system to identify a certain specific service used to implement the system execution event, such as specific service types such as query and search.
  • the event type of the system execution event is the event type of a specific function corresponding to the realization of the service type, such as click event, sliding event, coordinate positioning event, database call event, function library query event, etc.
  • system log two types of information, the business type of the system execution event and the event type of the system execution event, are recorded. These two kinds of information can be pre-stored in different fields in the system log. It is understandable that the system log also includes the recorded The various parameters generated during the execution of the system execution event of the system are used as the key parameter information for the operation and maintenance personnel to perform fault analysis.
  • Step S220 If the target system log is determined to be the system log that needs to be printed in the system according to the business type and event type, add a log level adjustment parameter to the target system log, and the log level adjustment parameter is a preset log for modifying the system log Level parameters.
  • a system execution event table that needs to print the system log can be established in advance, and the system execution event generated by the system execution event in the system execution event table can be generated during execution.
  • the log is the system log that needs to be printed in the system.
  • the target system log is a system log that needs to be printed in the system
  • the log level adjustment parameter is a parameter preset by the system for modifying the log level of the target log in the system log service. This parameter can adjust the log level of the system log.
  • FIG. 3 is a specific flowchart of step S220 of the log printing method according to an exemplary embodiment of the application.
  • Step S220 may include step S310 to step S320, which are described in detail as follows.
  • step S310 if the service type and event type match the service type and event type of the system execution event that requires log printing, it is determined that the target system log is the system log that needs to be printed in the system.
  • the business type and event type carried in the target system log can be specifically combined with the system execution that needs to be printed.
  • the business type and event type corresponding to each system execution event in the event set are compared. If the business type carried in the target system log is consistent with the business type corresponding to a system execution event in the system execution event set and the event carried in the target system log The type is consistent with the event type corresponding to a certain system execution event in the system execution event set, and the target system log is determined to be the system log that needs to be printed in the system.
  • step S320 a log level adjustment parameter is added to the target system log.
  • a log level adjustment parameter is added at a preset position in the direct target system log, so as to adjust the log level of the target system log.
  • the log level adjustment parameter can be stored in the target system log as the field value under a specific field.
  • FIG. 4 is a specific flowchart of step S320 of the log printing method according to an exemplary embodiment of the application.
  • Step S320 may include step S410 to step S420, which are described in detail as follows.
  • Step S410 Determine the log level of the target system log according to the service type, event type, and the corresponding relationship between the log level of the system log and the service type and event type.
  • the predetermined log level refers to the printing standard of the log in the system, and only the log level Only the system logs that reach the predetermined log level can be printed. Since the system has pre-stored the correspondence between all system execution events and the log level of the system log generated during the execution of the system execution event, it can be based on the business type of the target system log, the event type of the target system log, and the system log The corresponding relationship between the log level and the business type and event type determines the log level of the target system log.
  • step S420 if the log level of the target system log is lower than the predetermined log level, a log level adjustment parameter is added to the target system log.
  • the determined log level of the target system log is compared with the predetermined log level. If the log level of the target system log is lower than the predetermined log level, the log level adjustment parameter is added to the target system log. If the log level of the system log is higher than or equal to the predetermined log level, there is no need to add log level adjustment parameters to the target system log.
  • the log level adjustment parameter can be added to the target system log only when the log level of the target system log needs to be adjusted, and the log level of the target system log does not need to be adjusted.
  • the log level adjustment parameter is not added during adjustment, so unnecessary data processing of the system can be effectively reduced, thereby reducing the occupation of system resources.
  • step S230 adjust the log level of the parameter target system log according to the log level carried in the target system log, so that the adjusted log level of the target system log conforms to the printing standard of the log in the system.
  • the target system log before the target system log is sent to the printing process for printing, it can be detected whether the log level adjustment parameter is carried in the target system log. If it is detected that the target system log carries the log level adjustment parameter, then The log level adjustment parameter adjusts the log level of the target system log so that the adjusted log level of the target system log conforms to the printing standard of the log in the system.
  • FIG. 5 is a specific flowchart of step S230 of the log printing method according to an exemplary embodiment of the application.
  • Step S230 may include steps S510 to S530, which are described in detail as follows.
  • Step S510 Obtain log level adjustment parameters carried in the target system log.
  • the log level adjustment parameter when adjusting the log level of the target system log according to the log level adjustment parameter, the log level adjustment parameter needs to be obtained from the field value in the specific field storing the log level adjustment parameter.
  • Step S520 Determine the target field identifying the log level in the target system log.
  • the target field is a preset target system for storing the target system log.
  • the fields of the log When determining the target field in the target system log, the target field can be found by searching the field name.
  • step S530 based on the obtained log level adjustment parameter, the field value in the target field is modified to a field value that conforms to the printing standard of the log in the system.
  • the field value in the target field is modified to the same value based on the obtained log level adjustment parameter.
  • step S240 sending the adjusted target system log to the printing process, so as to perform the operation of printing the target system log.
  • the printing process is a process for the system to print the system log.
  • the printing process detects the input of the system log, it will determine whether the system log meets the printing standard of the system log, that is, determine the log level of the system log. Whether it is higher than or equal to the predetermined log level, if higher than or equal to the predetermined log level, add the system log to the print list to execute the operation of printing the target system log.
  • the log level adjustment parameter of the target system log is adjusted according to the log level adjustment parameter carried in the target system log by adding a log level adjustment parameter to the target system log.
  • FIG. 6 is a flowchart of a log printing method shown in an exemplary embodiment of this application.
  • the log printing method in this embodiment may further include steps S610 to S620, which are described in detail as follows.
  • Step S610 Obtain an update configuration file that needs to be printed in the system log in the update system, and the update configuration file is used to update and configure the authority to print the system log generated when the system executes the event.
  • the system execution events pre-stored in the system that require system log printing can be stored in the storage area of the system as a system execution event table.
  • the system execution event table includes various system execution events that require system log printing.
  • the update configuration file is the file that needs to be printed in the system log in the update system. You can update the configuration of the permission to print the system log generated when the system executes the event execution, that is, the system that needs to print the system log in the system execution event table.
  • the execution event, and its corresponding business type and event type are updated.
  • Step S620 by updating the system execution events that need to be printed in the system log in the system configured in the configuration file, update the locally stored system execution events that need to be printed in the system log.
  • the system execution events that require system log printing in the system configured in the update configuration file can be used to update the locally stored system execution events that require system log printing.
  • FIG. 7 is a flowchart of a log printing method shown in an exemplary embodiment of this application.
  • the log printing method in this embodiment may include step S710 to step S720, which are described in detail as follows.
  • Step S710 Receive a display request for displaying the target system log.
  • the target system log after the target system log is successfully printed, it can be stored in a log file dedicated to storing the system log.
  • the display request is a request for the system log required by the request, which can be triggered by a predetermined function button or physical button. The operation and maintenance personnel can input the corresponding display request when they need to view the target system log.
  • Step S720 Display the printed target system log according to the display request.
  • the printed log after receiving the display request, the printed log will be obtained from the log file for display.
  • FIG. 8 is a specific flowchart of step S720 of the log printing method according to an exemplary embodiment of the application.
  • Step S720 may include step S810 to step S820, which are described in detail as follows.
  • Step S810 Sort the printed target system logs according to a preset sorting rule to generate a log list.
  • the multiple target systems that are printed can be first displayed according to a preset sorting rule.
  • the logs are sorted to generate a log list.
  • the preset sorting rule can be displayed according to the printing time sequence of multiple target system logs in the printing process.
  • the system log with the printing time first is arranged at the front of the list, and the system with the printing time later is arranged at the front of the list.
  • the logs are arranged at the back of the list.
  • the preset sorting rule may also be arranged according to the data volume of the target system log to be printed.
  • the system log with a large amount of data is arranged at the front of the list, and the system log with a small amount of data is arranged at the back of the list.
  • step S820 the log list is displayed.
  • the generated log list is displayed so that the operation and maintenance personnel can view each target system log in the log list.
  • FIG. 9 is a block diagram of a log printing apparatus according to an embodiment of the present application.
  • the log printing apparatus may be integrated in an electronic device.
  • the log printing apparatus 900 may include: a first obtaining unit 910 The adding unit 920, the adjusting unit 930, the printing unit 940; the first obtaining unit 910 is used to obtain the target system log generated when the system executes the event, and the target system log carries the service type and the result of the system execution event.
  • the event type of the system execution event is configured to add a log to the target system log if it is determined that the target system log is a system log that needs to be printed in the system according to the service type and the event type Level adjustment parameter, the log level adjustment parameter is a preset parameter for modifying the log level of the system log; the adjustment unit 930 is configured to adjust the parameter of the target system log according to the log level carried in the target system log Log level, so that the adjusted log level of the target system log conforms to the printing standard of the system log; the printing unit 940 sends the adjusted target system log to the printing process to facilitate printing of the target The operation of the system log.
  • the adding unit 920 is configured to: if the service type and the event type match the service type and event type of the system execution event that requires log printing, determine that the target system log is required in the system System log for printing; adding log level adjustment parameters to the target system log.
  • the adding unit 920 is configured to: determine the log level of the target system log according to the service type, the event type, and the corresponding relationship between the log level of the system log and the service type and event type; If the log level of the target system log is lower than the predetermined log level, a log level adjustment parameter is added to the target system log.
  • the adjustment unit 930 is configured to: obtain log level adjustment parameters carried in the target system log; determine a target field identifying the log level in the target system log; The field value in the target field is modified to a field value that conforms to the printing standard of the log in the system.
  • the log printing device further includes: a second obtaining unit: used to obtain an update configuration file that needs to be printed in the system log in the update system, and the update configuration file is used to execute an event generated when the system is executed.
  • the system log has the right to print the update configuration; the update configuration unit is used to update the system execution events that need to be printed in the system log in the system configured in the update configuration file to update the system execution events that need to be printed in the system log.
  • the log printing device further includes: a receiving unit, configured to receive a display request for displaying the target system log; and a displaying unit, configured to display the printed target system log according to the display request.
  • the display unit is configured to: sort the printed target system logs according to a preset sorting rule to generate a log list; and display the log list.
  • the example embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present application 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, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) execute the method according to the embodiment of the present application.
  • a non-volatile storage medium which can be a CD-ROM, U disk, mobile hard disk, etc.
  • Including several instructions to make a computing device which can be a personal computer, a server, a mobile terminal, or a network device, etc.
  • an electronic device capable of implementing the above method is also provided.
  • FIG. 10 is an exemplary block diagram of an electronic device for implementing the log printing method described above according to an exemplary embodiment of the application.
  • the electronic device 1000 shown in FIG. 10 is only an example, and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
  • the log printing method includes: obtaining a target system log generated when the system executes an event, the target system log carries the service type of the system execution event and the event type of the system execution event;
  • the business type and the event type determine that the target system log is a system log that needs to be printed in the system, then a log level adjustment parameter is added to the target system log, and the log level adjustment parameter is preset for modifying the system
  • the log level parameter of the log the log level of the target system log is adjusted according to the log level carried in the target system log, so that the adjusted log level of the target system log is consistent with the printing standard of the log in the system Meet; send the adjusted target system log to the printing process to facilitate the execution of the operation of printing the target system log.
  • the electronic device 1000 is represented in the form of a general-purpose computing device.
  • the components of the electronic device 1000 may include, but are not limited to: the aforementioned at least one processing unit 1010, the aforementioned at least one storage unit 1020, and a bus 1030 connecting different system components (including the storage unit 1020 and the processing unit 1010).
  • the storage unit stores program code, and the program code can be executed by the processing unit 1010, so that the processing unit 1010 executes the various exemplary methods described in the “Exemplary Method” section of this specification. Steps of implementation.
  • the processing unit 1010 may perform step S210 to step S240 as shown in FIG. 2.
  • the storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 10201 and/or a cache storage unit 10202, and may further include a read-only storage unit (ROM) 10203.
  • RAM random access storage unit
  • ROM read-only storage unit
  • the storage unit 1020 may also include a program/utility tool 10204 having a set (at least one) program module 10205.
  • program module 10205 includes but is not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples or some combination may include the implementation of a network environment.
  • the bus 1030 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any bus structure among multiple bus structures. bus.
  • the electronic device 1000 can also communicate with one or more external devices 1200 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 1000, and/or communicate with Any device (such as a router, modem, etc.) that enables the electronic device 1000 to communicate with one or more other computing devices. This communication can be performed through an input/output (I/O) interface 1040.
  • the electronic device 1000 may also communicate with one or more networks (for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 1060.
  • networks for example, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet
  • the network adapter 1060 communicates with other modules of the electronic device 1000 through the bus 1030. It should be understood that although not shown in the figure, other hardware and/or software modules can be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
  • the example embodiments described here can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present application 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, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present application.
  • a computing device which can be a personal computer, a server, a terminal device, or a network device, etc.
  • a computer-readable storage medium is also provided.
  • the storage medium is a volatile storage medium or a non-volatile storage medium.
  • the log printing method includes: obtaining a target system log generated when the system executes an event, the target system log carries the service type of the system execution event and the event type of the system execution event; The business type and the event type determine that the target system log is a system log that needs to be printed in the system, then a log level adjustment parameter is added to the target system log, and the log level adjustment parameter is preset for modifying the system The log level parameter of the log; the log level of the target system log is adjusted according to the log level carried in the target system log, so that the adjusted log level of the target system log is consistent with the printing standard of the log in the system Meet; send the adjusted target system log to the printing process to facilitate the execution of the operation of printing the target system log.
  • various aspects of the present application can also be implemented in the form of a program product, which includes program code.
  • program product runs on a terminal device
  • the program code is used to make the The electronic device executes the steps described in the above-mentioned "Exemplary Method" section of this specification according to various exemplary embodiments of the present application.
  • FIG. 11 is a computer-readable storage medium for implementing the above-mentioned data verification method according to an exemplary embodiment of this application.
  • FIG. 11 depicts a program product 1100 for implementing the above method according to an embodiment of the present application, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be installed on an electronic device, such as a personal computer run.
  • CD-ROM portable compact disk read-only memory
  • the program product of this application is not limited to this.
  • the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
  • the program product can use any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Type programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
  • the program code used to perform the operations of the present application can be written in any combination of one or more programming languages.
  • the programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
  • the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (for example, using Internet service providers). Business to connect via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service providers for example, using Internet service providers.

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

一种日志打印方法、装置、电子设备和存储介质,该日志打印方法包括:获取系统执行事件执行时所产生的目标系统日志(S210),目标系统日志携带系统执行事件的业务类型和系统执行事件的事件类型;若根据业务类型、事件类型确定目标系统日志为系统中需要进行打印的系统日志,则在目标系统日志添加日志级别调整参数(S220);根据目标系统日志中携带的日志级别调整参数调整目标系统日志的日志级别(S230);发送调整后的目标系统日志至打印进程,以便于执行打印目标系统日志的操作(S240)。所述目标系统日志可由客户端上传至区块链服务器系统中的任意一个节点服务器。所述方法避免了打印大量不需要的日志,可以有效减少打印日志所占用的系统资源,减少了系统资源的浪费,提高系统资源的利用率。

Description

日志打印方法、装置、电子设备和存储介质
本申请要求于2020年9月22日提交中国专利局、申请号为2020110030776,发明名称为“日志打印方法、装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及云服务技术领域,特别是涉及基于日志打印方法、装置、电子设备和存储介质。
背景技术
日志主要用于记录系统在运行过程中产生的问题,运维人员可以通过日志来分析系统故障。运维人员一般会设定系统中日志的打印标准,系统中日志级别符合打印标准的日志可以进行打印。系统中的业务逻辑执行业务事件时所产生的日志,作为运维人员分析业务逻辑是否出现问题的日志,在系统正常运行时不会被用到,运维人员将这些日志的日志级别设置为低于打印标准的某个日志等级。
在现有技术中,在运维人员需要在对某个业务逻辑执行业务时所产生的日志进行打印时,一般通过修改系统日志配置的方式来降低系统中日志的打印标准,以使得该业务逻辑执行业务时所产生的日志符合打印标准,从而打印该目标日志。然而发明人意识到,通过上述方式降低系统中日志的打印标准后,系统中其它业务逻辑执行对应业务时所产生的日志也将被打印,进而会打印大量不需要的日志,占用系统资源,造成系统资源的浪费。
技术问题
在现有技术中,在运维人员需要在对某个业务逻辑执行业务时所产生的日志进行打印时,一般通过修改系统日志配置的方式来降低系统中日志的打印标准,以使得该业务逻辑执行业务时所产生的日志符合打印标准,从而打印该目标日志。然而发明人意识到,通过上述方式降低系统中日志的打印标准后,系统中其它业务逻辑执行对应业务时所产生的日志也将被打印,进而会打印大量不需要的日志,占用系统资源,造成系统资源的浪费。
技术解决方案
基于此,本申请提供了一种日志打印方法、装置、电子设备和存储介质,。
第一方面,本申请提供了一种日志打印方法,包括:获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
第二方面,本申请提供了一种日志打印装置,包括:第一获取单元,用于获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;添加单元,用于若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;调整单元,用于根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;打印单元,用于发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
第三方面,本申请提供了一种电子设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行上述日志打印方法的步骤,其中,所述日志打印方法包括:获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
第四方面,本申请提供了一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述日志打印方法的步骤,其中,所述日志打印方法包括:获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
有益效果
当目标系统执行事件为需要进行日志打印的系统执行事件时,通过在目标系统日志添加日志级别调整参数,根据目标系统日志中携带的日志级别调整参数调整目标系统日志的日志级别,以使得调整后的目标系统日志的日志级别与系统中日志的打印标准相符合,从而打印出该目标系统执行事件对应的目标系统日志,而其它的系统执行事件所产生的系统日志的日志级别不符合系统中日志的打印标准,因此所产生的系统日志不会被打印,避免了打印大量不需要的日志,可以有效减少打印日志所占用的系统资源,减少了系统资源的浪费,提高系统资源的利用率。
附图说明
图1示出了可以应用本申请实施例的技术方案的示例性系统架构的示意图。
图2为本申请一示例性实施例示出的日志打印方法的流程图。
图3为本申请一示例性实施例示出的日志打印方法的步骤S220的具体流程图。
图4为本申请一示例性实施例示出的日志打印方法的步骤S320的具体流程图。
图5为本申请一示例性实施例示出的日志打印方法的步骤S230的具体流程图。
图6为本申请一示例性实施例示出的日志打印方法的流程图。
图7为本申请一示例性实施例示出的日志打印方法的流程图。
图8为本申请一示例性实施例示出的日志打印方法的步骤S720的具体流程图。
图9为根据本申请的一个实施例的日志打印装置的框图。
图10为本申请一示例性实施例示出的一种用于实现上述日志打印方法的电子设备示例框图。
图11为本申请一示例性实施例示出的一种用于实现上述数据校验方法的计算机可读存储介质。
本发明的最佳实施方式
图1示出了可以应用本申请实施例的技术方案的示例性系统架构的示意图。
如图1所示,系统架构可以包括客户端101、网络102和服务器103,该服务器103可以为提供业务服务的服务器,客户端101为用户使用的可以实现对应业务服务的电子设备。网络102用以在客户端101和服务器103之间提供通信链路的介质。网络102可以包括各种连接类型,例如有线通信链路、无线通信链路等等。
应该理解,图1中的客户端101、网络102和服务器103的数目仅仅是示意性的。根据实现需要,可以具有任意数目的客户端101、网络102和服务器103,例如服务器103可以是多个服务器组成的服务器集群等。
可选的,本申请的服务器103可以由区块链服务器系统的多个节点服务器组成,客户端101可以将目标系统日志上传至区块链服务器系统的任意一个节点服务器,节点服务器可以打印该目标系统日志,以便于根据目标系统日志查看系统故障原因,节点服务器可以将系统故障原因上传至区块链服务器系统的其它节点服务器中,以使得各个节点服务器共享这些信息,基于区块链数据共享的安全性和不可更改特性,有效保证信息的安全性和可靠性。
本实施例中的系统执行事件执行时所产生的目标系统日志可以在客户端101生成,也可以直接在服务器103中生成,服务器103获取系统执行事件执行时所产生的目标系统日志,目标系统日志携带系统执行事件的业务类型和系统执行事件的事件类型;若根据业务类型、事件类型确定目标系统日志为系统中需要进行打印的系统日志,则在目标系统日志添加日志级别调整参数;根据目标系统日志中携带的日志级别调整参数目标系统日志的日志级别,以使得调整后的目标系统日志的日志级别与系统中日志的打印标准相符合;发送调整后的目标系统日志至打印进程,以便于执行打印目标系统日志的操作。
当目标系统执行事件为需要进行日志打印的系统执行事件时,通过在目标系统日志添加日志级别调整参数,根据目标系统日志中携带的日志级别调整参数调整目标系统日志的日志级别,以使得调整后的目标系统日志的日志级别与系统中日志的打印标准相符合,从而打印出该目标系统执行事件对应的目标系统日志,而其它的系统执行事件所产生的系统日志的日志级别不符合系统中日志的打印标准,因此所产生的系统日志不会被打印,避免了打印大量不需要的日志,可以有效减少打印日志所占用的系统资源,减少了系统资源的浪费,提高系统资源的利用率。
需要说明的是,本申请实施例所提供的日志打印方法一般由服务器103执行,相应地,日志打印装置一般设置于服务器103中。但是,在本申请的其它实施例中,客户端101也可以与服务器103具有相似的功能,从而执行本申请实施例所提供的日志打印方法的方案。
参考图2,图2为本申请一示例性实施例示出的日志打印方法的流程图,本申请实施例所提供的日志打印方法的执行主体为业务系统对应的服务器,该服务器可以图1所示的服务器103,如图2所示的日志打印方法包括步骤S210至步骤S240,详细描述如下。
步骤S210,获取系统执行事件执行时所产生的目标系统日志,目标系统日志携带系统执行事件的业务类型和系统执行事件的事件类型。
在一个实施例中,业务系统主要通过系统执行事件执行对系统领域业务的处理,不同的系统执行事件执行对系统领域不同业务的处理。当系统在执行某个业务出现问题时,运维人员需要及时去解决出现的问题。由于运维人员在对出现的问题进行分析时,不能影响到系统的正常使用,因此一般会通过对应的系统执行事件执行对应的业务动作,并将该系统执行事件执行对应的业务动作时所产生的系统日志进行打印,该系统日志作为记录程序调试信息的日志,运维人员可以根据系统日志中记录的信息分析查找出对应的问题,便于及时解决问题。
为了根据系统日志中的信息分析查找出对应的问题,需要先在系统中执行相应的系统执行事件,该系统执行事件可以通过在系统预设的功能模块输入的对应的业务请求所触发。
系统执行事件的业务类型可以为系统预设的用于标识系统执行事件执行时用于实现的某种具体业务,例如查询、搜索等具体的业务类型。系统执行事件的事件类型为实现该业务类型时对应的某个具体功能的事件类型,例如点击事件、滑动事件,坐标定位事件、调用数据库事件、查询函数库事件等。
系统日志中对系统执行事件的业务类型和系统执行事件的事件类型这两种信息进行记录,这两种信息可以预存于系统日志中的不同字段中,可以理解的是,系统日志还包括所记录的系统执行事件在执行所产生的各种参数,这些参数用于作为运维人员进行故障分析的关键参数信息。
步骤S220,若根据业务类型、事件类型确定目标系统日志为系统中需要进行打印的系统日志,则在目标系统日志添加日志级别调整参数,日志级别调整参数为预设的用于修改系统日志的日志级别的参数。
在一个实施例中,在需要对系统的具体故障进行分析时,可以预先建立需要进行打印系统日志的系统执行事件表,并将该系统执行事件表中的系统执行事件在执行时所产生的系统日志作为系统中需要进行打印的系统日志。
在确定目标系统日志是否为系统中需要进行打印的系统日志时,可以根据目标系统日志携带系统执行事件的业务类型和系统执行事件的事件类型来确定该系统执行事件是否为需要进行打印系统日志的系统执行事件表中的某个系统执行事件,若是,则确定该系统执行事件在执行时所产生的目标系统日志为系统中需要进行打印的系统日志。
日志级别调整参数为系统预设的用于修改系统日志业务中目标日志的日志级别的参数,该参数可以对系统日志的日志级别进行调整。
参考图3,图3为本申请一示例性实施例示出的日志打印方法的步骤S220的具体流程图,步骤S220可以包括步骤S310至步骤S320,详细描述如下。
步骤S310,若业务类型和事件类型与需要进行日志打印的系统执行事件的业务类型和事件类型相匹配,则确定目标系统日志为系统中需要进行打印的系统日志。
在一个实施例中,在根据业务类型、事件类型确定目标系统日志为系统中需要进行打印的系统日志时,具体可以将目标系统日志中携带的业务类型和事件类型与需要进行日志打印的系统执行事件集中的各系统执行事件对应的业务类型和事件类型进行比对,若目标系统日志中携带的业务类型与系统执行事件集中某个系统执行事件对应的业务类型一致且目标系统日志中携带的事件类型与系统执行事件集中某个系统执行事件对应的事件类型一致,则确定目标系统日志为系统中需要进行打印的系统日志。
步骤S320,在目标系统日志中添加日志级别调整参数。
在一个实施例中,当确定目标系统日志为系统中需要进行打印的系统日志后,在直接目标系统日志中预设的位置处添加日志级别调整参数,以便于调整目标系统日志的日志级别,具体的,可以将该日志级别调整参数作为特定字段下的字段值存储于目标系统日志中。
参考图4,图4为本申请一示例性实施例示出的日志打印方法的步骤S320的具体流程图,步骤S320可以包括步骤S410至步骤S420,详细描述如下。
步骤S410,根据业务类型、事件类型、以及系统日志的日志级别与业务类型和事件类型的对应关系,确定目标系统日志的日志级别。
在一个实施例中,在目标系统日志中添加日志级别调整参数之前,可以确定目标系统日志当前的日志级别是否低于预定日志级别,预定日志级别指的是系统中日志的打印标准,只有日志级别达到该预定日志级别的系统日志才能进行打印。由于系统中预存了所有系统执行事件与该系统执行事件在执行时所产生的系统日志的日志级别的对应关系,因此,可以根据目标系统日志的业务类型、目标系统日志的事件类型、以及系统日志的日志级别与业务类型和事件类型的对应关系,确定该目标系统日志的日志级别。
步骤S420,若目标系统日志的日志级别低于预定日志级别,则在目标系统日志中添加日志级别调整参数。
在一个实施例中,将所确定的目标系统日志的日志级别与预定日志级别进行比较,若目标系统日志的日志级别低于预定日志级别,则在目标系统日志中添加日志级别调整参数,若目标系统日志的日志级别高于或等于预定日志级别,则不需要在目标系统日志中添加日志级别调整参数。
图4所示实施例的技术方案中,通过将目标系统日志的日志级别与预定日志级别进行比较,仅当目标系统日志的日志级别低于预定日志级别时,在目标系统日志中添加日志级别调整参数,相较于直接在添加日志级别调整参数的方式,可以仅在目标系统日志的日志级别需要进行调整时才在目标系统日志中添加日志级别调整参数,在目标系统日志的日志级别不需要进行调整时不添加日志级别调整参数,因此可以有效减少系统不必要的数据处理,从而减少对系统资源的占用。
还请继续参考图2,步骤S230,根据目标系统日志中携带的日志级别调整参数目标系统日志的日志级别,以使得调整后的目标系统日志的日志级别与系统中日志的打印标准相符合。
在一个实施例中,在将目标系统日志发送至打印进程中进行打印之前,可以检测目标系统日志中是否携带的日志级别调整参数,若检测到目标系统日志中携带有日志级别调整参数,则根据日志级别调整参数调整该目标系统日志的日志级别,以使得调整后的目标系统日志的日志级别与系统中日志的打印标准相符合。
参考图5,图5为本申请一示例性实施例示出的日志打印方法的步骤S230的具体流程图,步骤S230可以包括步骤S510至步骤S530,详细描述如下。
步骤S510,获取目标系统日志中携带的日志级别调整参数。
在一个实施例中,根据日志级别调整参数调整目标系统日志的日志级别时,需要从存储日志级别调整参数的特定字段中的字段值,得到该日志级别调整参数。
步骤S520,确定目标系统日志中标识日志级别的目标字段。
在一个实施例中,在根据日志级别调整参数调整目标系统日志的日志级别时,还需要确定目标系统日志中标识日志级别的目标字段,目标字段为预设的用于存储目标系统日志的目标系统日志的字段。在确定目标系统日志中的目标字段,具体可以通过查找字段名的方式查找到该目标字段。
步骤S530,基于所获取的日志级别调整参数将目标字段中的字段值修改为与系统中日志的打印标准相符合的字段值。
在一个实施例中,获取到目标系统日志中携带的日志级别调整参数以及确定目标系统日志中标识日志级别的目标字段后,基于所获取的日志级别调整参数将目标字段中的字段值修改为与系统中日志的打印标准相符合的字段值,以实现对目标系统日志的日志级别进行修改。
还请继续参考图2,步骤S240,发送调整后的目标系统日志至打印进程,以便于执行打印目标系统日志的操作。
在一个实施例中,打印进程为系统对系统日志进行打印的进程,打印进程在检测到系统日志输入时,会判断系统日志是否系统中日志的打印标准相符合,即判断该系统日志的日志级别是否高于或等于预定日志级别,若高于或等于预定日志级别,则将该系统日志添加到打印列表中,以执行打印目标系统日志的操作。
以上可以看出,当目标系统执行事件为需要进行日志打印的系统执行事件时,通过在目标系统日志添加日志级别调整参数,根据目标系统日志中携带的日志级别调整参数调整目标系统日志的日志级别,以使得调整后的目标系统日志的日志级别与系统中日志的打印标准相符合,从而打印出该目标系统执行事件对应的目标系统日志,而其它的系统执行事件所产生的系统日志的日志级别不符合系统中日志的打印标准,因此所产生的系统日志不会被打印,避免了打印大量不需要的日志,可以有效减少打印日志所占用的系统资源,减少了系统资源的浪费,提高系统资源的利用率。
参考图6,图6为本申请一示例性实施例示出的日志打印方法的流程图,本实施例中的日志打印方法还可以包括步骤S610至步骤S620,详细描述如下。
步骤S610,获取用于更新系统中需要进行系统日志打印的更新配置文件,更新配置文件用于对系统执行事件执行时所产生的系统日志进行打印的权限进行更新配置。
在一个实施例中,系统中所预存的需要进行系统日志打印的系统执行事件可以以系统执行事件表存储于系统的存储区中,系统执行事件表包括各个需要进行系统日志打印的系统执行事件、以及系统执行事件所对应的业务类型和事件类型。更新配置文件作为更新系统中需要进行系统日志打印的文件,可以对系统执行事件执行时所产生的系统日志进行打印的权限进行更新配置,即对系统执行事件表中需要进行系统日志打印的各系统执行事件、以及其对应的业务类型和事件类型进行更新。
步骤S620,通过更新配置文件中配置的系统中需要进行系统日志打印的系统执行事件更新本地存储的需要进行系统日志打印的系统执行事件。
在一个实施例中,在获取到该更新配置文件后,可以通过更新配置文件中配置的系统中需要进行系统日志打印的系统执行事件更新本地存储的需要进行系统日志打印的系统执行事件。
参考图7,图7为本申请一示例性实施例示出的日志打印方法的流程图,本实施例中的日志打印方法可以包括步骤S710至步骤S720,详细描述如下。
步骤S710,接收展示目标系统日志的展示请求。
在一个实施例中,目标系统日志在打印成功后,可以被存储至专门用于存储系统日志的日志文件中。展示请求作为请求所需的系统日志的请求,可以通过预定的功能按键或实体按键所触发,运维人员在需要查看目标系统日志可以输入对应的展示请求。
步骤S720,根据展示请求展示所打印的目标系统日志。
在一个实施例中,在接收到展示请求后,将从日志文件获取所打印的日志进行展示。
参考图8,图8为本申请一示例性实施例示出的日志打印方法的步骤S720的具体流程图,步骤S720可以包括步骤S810至步骤S820,详细描述如下。
步骤S810,以预设的排序规则对所打印的目标系统日志进行排序生成日志列表。
在一个实施例中,在打印的目标系统日志进行展示时,由于目标系统日志可以为多个,在对目标系统日志进行展示时,可以按照预设的排序规则先对所打印的多个目标系统日志进行排序生成日志列表。
可选的,该预设的排序规则可以根据多个目标系统日志在打印进程中的打印时间的先后顺序来进行展示,打印时间在前的系统日志排列在列表的前面,打印时间在后的系统日志排列在列表的后面。该预设的排序规则也可以是按照所打印的目标系统日志的数据量来进行排列的,数据量大的系统日志排列在列表的前面,数据量小的系统日志排列在列表的后面。
步骤S820,展示日志列表。
在一个实施例中,展示所生成的日志列表,以便于运维人员查看日志列表中每个目标系统日志。
参考图9,图9为本申请的一个实施例的日志打印装置的框图,日志打印装置可以集成于电子设备中,根据本申请的一个实施例的日志打印装置900可以包括:第一获取单元910、添加单元920、调整单元930、打印单元940;第一获取单元910,用于获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;添加单元920,用于若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;调整单元930,用于根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;打印单元940,发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
可选的,添加单元920被配置为:若所述业务类型和所述事件类型与需要进行日志打印的系统执行事件的业务类型和事件类型相匹配,则确定所述目标系统日志为系统中需要进行打印的系统日志;在所述目标系统日志中添加日志级别调整参数。
可选的,添加单元920被配置为:根据所述业务类型、所述事件类型、以及系统日志的日志级别与业务类型和事件类型的对应关系,确定所述目标系统日志的日志级别;若所述目标系统日志的日志级别低于预定日志级别,则在所述目标系统日志中添加日志级别调整参数。
可选的,调整单元930被配置为:获取所述目标系统日志中携带的日志级别调整参数;确定所述目标系统日志中标识日志级别的目标字段;基于所获取的日志级别调整参数将所述目标字段中的字段值修改为与系统中日志的打印标准相符合的字段值。
可选的,所述日志打印装置还包括:第二获取单元:用于获取用于更新系统中需要进行系统日志打印的更新配置文件,所述更新配置文件用于对系统执行事件执行时所产生的系统日志进行打印的权限进行更新配置;更新配置单元,用于通过所述更新配置文件中配置的系统中需要进行系统日志打印的系统执行事件更新本地存储的需要进行系统日志打印的系统执行事件。
可选的,所述日志打印装置还包括:接收单元:用于接收展示所述目标系统日志的展示请求;展示单元,用于根据所述展示请求展示所打印的所述目标系统日志。
可选的,展示单元被配置为:以预设的排序规则对所打印的所述目标系统日志进行排序生成日志列表;展示所述日志列表。
上述装置中各个模块的功能和作用的实现过程具体详见上述基于日志打印方法中对应步骤的实现过程,在此不再赘述。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
此外,尽管在附图中以特定顺序描述了本申请中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本申请实施方式的方法。
在本申请的示例性实施例中,还提供了一种能够实现上述方法的电子设备。
所属技术领域的技术人员能够理解,本申请的各个方面可以实现为系统、方法或程序产品。因此,本申请的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。
参考图10,图10为本申请一示例性实施例示出的一种用于实现上述日志打印方法的电子设备示例框图。图10显示的电子设备1000仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。其中,所述日志打印方法包括:获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
如图10所示,电子设备1000以通用计算设备的形式表现。电子设备1000的组件可以包括但不限于:上述至少一个处理单元1010、上述至少一个存储单元1020、连接不同系统组件(包括存储单元1020和处理单元1010)的总线1030。
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元1010执行,使得所述处理单元1010执行本说明书上述“示例性方法”部分中描述的根据本申请各种示例性实施方式的步骤。例如,所述处理单元1010可以执行如图2中所示的步骤S210至步骤S240。
存储单元1020可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)10201和/或高速缓存存储单元10202,还可以进一步包括只读存储单元(ROM)10203。
存储单元1020还可以包括具有一组(至少一个)程序模块10205的程序/实用工具10204,这样的程序模块10205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
总线1030可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。
电子设备1000也可以与一个或多个外部设备1200(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备1000交互的设备通信,和/或与使得该电子设备1000能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口1040进行。并且,电子设备1000还可以通过网络适配器1060与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器1060通过总线1030与电子设备1000的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备1000使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本申请实施方式的方法。
在本申请的示例性实施例中,还提供了一种计算机可读存储介质,所述存储介质为易失性存储介质或非易失性存储介质,其上存储有能够实现本说明书上述日志打印方法的程序产品。其中,所述日志打印方法包括:获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
在一些可能的实施方式中,本申请的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述电子设备执行本说明书上述“示例性方法”部分中描述的根据本申请各种示例性实施方式的步骤。
参考图11所示,图11为本申请一示例性实施例示出的一种用于实现上述数据校验方法的计算机可读存储介质。图11描述了根据本申请的实施方式的用于实现上述方法的程序产品1100,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在电子设备,例如个人电脑上运行。然而,本申请的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言的任意组合来编写用于执行本申请操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。
此外,上述附图仅是根据本申请示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。

Claims (20)

  1. 一种日志打印方法,其中,包括:
    获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;
    若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;
    根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;
    发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
  2. 根据权利要求1所述的日志打印方法,其中,所述若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,还包括:
    若所述业务类型和所述事件类型与需要进行日志打印的系统执行事件的业务类型和事件类型相匹配,则确定所述目标系统日志为系统中需要进行打印的系统日志;
    在所述目标系统日志中添加日志级别调整参数。
  3. 根据权利要求2所述的日志打印方法,其中,所述在所述目标系统日志中添加日志级别调整参数,包括:
    根据所述业务类型、所述事件类型、以及系统日志的日志级别与业务类型和事件类型的对应关系,确定所述目标系统日志的日志级别;
    若所述目标系统日志的日志级别低于预定日志级别,则在所述目标系统日志中添加日志级别调整参数。
  4. 根据权利要求1所述的日志打印方法,其中,所述根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,包括:
    获取所述目标系统日志中携带的日志级别调整参数;
    确定所述目标系统日志中标识日志级别的目标字段;
    基于所获取的日志级别调整参数将所述目标字段中的字段值修改为与系统中日志的打印标准相符合的字段值。
  5. 根据权利要求1所述的日志打印方法,其中,所述日志打印方法还包括:
    获取用于更新系统中需要进行系统日志打印的更新配置文件,所述更新配置文件用于对系统执行事件执行时所产生的系统日志进行打印的权限进行更新配置;
    通过所述更新配置文件中配置的系统中需要进行系统日志打印的系统执行事件更新本地存储的需要进行系统日志打印的系统执行事件。
  6. 根据权利要求1所述的日志打印方法,其中,所述日志打印方法包括:
    接收展示所述目标系统日志的展示请求;
    根据所述展示请求展示所打印的所述目标系统日志。
  7. 根据权利要求6所述的日志打印方法,其中,所述根据所述展示请求展示所打印的所述目标系统日志,包括:
    以预设的排序规则对所打印的所述目标系统日志进行排序生成日志列表;
    展示所述日志列表。
  8. 一种日志打印装置,其中,包括:
    第一获取单元,用于获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;
    添加单元,用于若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;
    调整单元,用于根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;
    打印单元,用于发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
  9. 一种电子设备,其中,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行一种日志打印方法;
    其中,所述日志打印方法包括:
    获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;
    若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;
    根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;
    发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
  10. 根据权利要求9所述的电子设备,其中,所述若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,还包括:
    若所述业务类型和所述事件类型与需要进行日志打印的系统执行事件的业务类型和事件类型相匹配,则确定所述目标系统日志为系统中需要进行打印的系统日志;
    在所述目标系统日志中添加日志级别调整参数。
  11. 根据权利要求10所述的电子设备,其中,所述在所述目标系统日志中添加日志级别调整参数,包括:
    根据所述业务类型、所述事件类型、以及系统日志的日志级别与业务类型和事件类型的对应关系,确定所述目标系统日志的日志级别;
    若所述目标系统日志的日志级别低于预定日志级别,则在所述目标系统日志中添加日志级别调整参数。
  12. 根据权利要求9所述的电子设备,其中,所述根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,包括:
    获取所述目标系统日志中携带的日志级别调整参数;
    确定所述目标系统日志中标识日志级别的目标字段;
    基于所获取的日志级别调整参数将所述目标字段中的字段值修改为与系统中日志的打印标准相符合的字段值。
  13. 根据权利要求9所述的电子设备,其中,所述日志打印方法还包括:
    获取用于更新系统中需要进行系统日志打印的更新配置文件,所述更新配置文件用于对系统执行事件执行时所产生的系统日志进行打印的权限进行更新配置;
    通过所述更新配置文件中配置的系统中需要进行系统日志打印的系统执行事件更新本地存储的需要进行系统日志打印的系统执行事件。
  14. 根据权利要求9所述的电子设备,其中,所述日志打印方法包括:
    接收展示所述目标系统日志的展示请求;
    根据所述展示请求展示所打印的所述目标系统日志。
  15. 一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行一种日志打印方法;
    其中,所述日志打印方法包括:
    获取系统执行事件执行时所产生的目标系统日志,所述目标系统日志携带所述系统执行事件的业务类型和所述系统执行事件的事件类型;
    若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,所述日志级别调整参数为预设的用于修改系统日志的日志级别的参数;
    根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,以使得调整后的所述目标系统日志的日志级别与系统中日志的打印标准相符合;
    发送调整后的所述目标系统日志至打印进程,以便于执行打印所述目标系统日志的操作。
  16. 根据权利要求15所述的存储介质,其中,所述若根据所述业务类型、所述事件类型确定所述目标系统日志为系统中需要进行打印的系统日志,则在所述目标系统日志添加日志级别调整参数,还包括:
    若所述业务类型和所述事件类型与需要进行日志打印的系统执行事件的业务类型和事件类型相匹配,则确定所述目标系统日志为系统中需要进行打印的系统日志;
    在所述目标系统日志中添加日志级别调整参数。
  17. 根据权利要求16所述的存储介质,其中,所述在所述目标系统日志中添加日志级别调整参数,包括:
    根据所述业务类型、所述事件类型、以及系统日志的日志级别与业务类型和事件类型的对应关系,确定所述目标系统日志的日志级别;
    若所述目标系统日志的日志级别低于预定日志级别,则在所述目标系统日志中添加日志级别调整参数。
  18. 根据权利要求15所述的存储介质,其中,所述根据所述目标系统日志中携带的日志级别调整参数所述目标系统日志的日志级别,包括:
    获取所述目标系统日志中携带的日志级别调整参数;
    确定所述目标系统日志中标识日志级别的目标字段;
    基于所获取的日志级别调整参数将所述目标字段中的字段值修改为与系统中日志的打印标准相符合的字段值。
  19. 根据权利要求15所述的存储介质,其中,所述日志打印方法还包括:
    获取用于更新系统中需要进行系统日志打印的更新配置文件,所述更新配置文件用于对系统执行事件执行时所产生的系统日志进行打印的权限进行更新配置;
    通过所述更新配置文件中配置的系统中需要进行系统日志打印的系统执行事件更新本地存储的需要进行系统日志打印的系统执行事件。
  20. 根据权利要求15所述的存储介质,其中,所述日志打印方法包括:
    接收展示所述目标系统日志的展示请求;
    根据所述展示请求展示所打印的所述目标系统日志。
PCT/CN2020/125141 2020-09-22 2020-10-30 日志打印方法、装置、电子设备和存储介质 WO2021155683A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011003077.6A CN112130781A (zh) 2020-09-22 2020-09-22 日志打印方法、装置、电子设备和存储介质
CN202011003077.6 2020-09-22

Publications (1)

Publication Number Publication Date
WO2021155683A1 true WO2021155683A1 (zh) 2021-08-12

Family

ID=73842385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/125141 WO2021155683A1 (zh) 2020-09-22 2020-10-30 日志打印方法、装置、电子设备和存储介质

Country Status (2)

Country Link
CN (1) CN112130781A (zh)
WO (1) WO2021155683A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778350A (zh) * 2021-01-08 2021-12-10 北京沃东天骏信息技术有限公司 一种日志打印方法和装置
CN113157659A (zh) * 2021-05-14 2021-07-23 中国建设银行股份有限公司 一种日志处理方法和装置
CN113238722A (zh) * 2021-05-17 2021-08-10 上海中通吉网络技术有限公司 日志打印方法及设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461844A (zh) * 2014-10-31 2015-03-25 大唐移动通信设备有限公司 一种基于规则的日志服务方法
CN108804279A (zh) * 2018-03-30 2018-11-13 阿里巴巴集团控股有限公司 修改日志打印等级的方法及应用设备
CN109450689A (zh) * 2018-11-19 2019-03-08 郑州云海信息技术有限公司 一种日志打印方法、装置、存储介质和计算机设备
CN109471845A (zh) * 2018-10-25 2019-03-15 深圳壹账通智能科技有限公司 日志管理方法、服务器及计算机可读存储介质
US20190286399A1 (en) * 2017-06-30 2019-09-19 Canon Kabushiki Kaisha Image forming apparatus, server apparatus, and information processing system
CN110308880A (zh) * 2019-05-20 2019-10-08 平安普惠企业管理有限公司 日志打印方法、系统、计算机设备及计算机可读存储介质
CN110858130A (zh) * 2018-08-22 2020-03-03 网宿科技股份有限公司 日志打印方法及系统、服务器

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461844A (zh) * 2014-10-31 2015-03-25 大唐移动通信设备有限公司 一种基于规则的日志服务方法
US20190286399A1 (en) * 2017-06-30 2019-09-19 Canon Kabushiki Kaisha Image forming apparatus, server apparatus, and information processing system
CN108804279A (zh) * 2018-03-30 2018-11-13 阿里巴巴集团控股有限公司 修改日志打印等级的方法及应用设备
CN110858130A (zh) * 2018-08-22 2020-03-03 网宿科技股份有限公司 日志打印方法及系统、服务器
CN109471845A (zh) * 2018-10-25 2019-03-15 深圳壹账通智能科技有限公司 日志管理方法、服务器及计算机可读存储介质
CN109450689A (zh) * 2018-11-19 2019-03-08 郑州云海信息技术有限公司 一种日志打印方法、装置、存储介质和计算机设备
CN110308880A (zh) * 2019-05-20 2019-10-08 平安普惠企业管理有限公司 日志打印方法、系统、计算机设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN112130781A (zh) 2020-12-25

Similar Documents

Publication Publication Date Title
WO2021155683A1 (zh) 日志打印方法、装置、电子设备和存储介质
WO2021259013A1 (zh) 数据处理方法、装置、电子设备及计算机可读介质
WO2020221190A1 (zh) 小程序状态同步方法、设备和计算机存储介质
US9634966B2 (en) Integrated two-way communications between database client users and administrators
WO2021139238A1 (zh) 云业务应用升级方法、装置、电子设备和存储介质
CN112162965B (zh) 一种日志数据处理的方法、装置、计算机设备及存储介质
WO2022121221A1 (zh) 基于令牌的应用程序访问方法、装置、计算机设备和介质
CN112187799B (zh) 资源访问策略生成方法及装置、存储介质、电子设备
WO2021190659A1 (zh) 系统的数据获取方法、装置、介质及电子设备
US8250237B2 (en) Communication with database client users
CN110704390B (zh) 获取服务器维护脚本的方法、装置、电子设备及介质
US8984124B2 (en) System and method for adaptive data monitoring
CN111586177B (zh) 集群会话防丢失方法及系统
WO2021012741A1 (zh) 基于经验库的异常前端操作提醒的方法及相关设备
CN113220342A (zh) 中心化配置方法、装置、电子设备及存储介质
CN113238815A (zh) 一种接口访问控制方法、装置、设备及存储介质
WO2021012554A1 (zh) 区块链中数据字段的更新方法、装置、介质、电子设备
WO2023151397A1 (zh) 应用程序部署方法、装置、设备及介质
CN116132089A (zh) 一种基于云平台管理的自适应验证方法及系统
CN112202598B (zh) 一种日志记录方法及装置
WO2021227636A1 (zh) 微服务处理方法及装置、存储介质及电子设备
US11693851B2 (en) Permutation-based clustering of computer-generated data entries
CN114640585B (zh) 一种资源更新方法、装置、电子设备和存储介质
CN112632022B (zh) 对象存储方法及装置、计算机可读存储介质以及电子设备
WO2023230797A1 (zh) 一种跨系统测试方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20917853

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20917853

Country of ref document: EP

Kind code of ref document: A1