CN109450689B - Log printing method and device, storage medium and computer equipment - Google Patents

Log printing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN109450689B
CN109450689B CN201811378799.2A CN201811378799A CN109450689B CN 109450689 B CN109450689 B CN 109450689B CN 201811378799 A CN201811378799 A CN 201811378799A CN 109450689 B CN109450689 B CN 109450689B
Authority
CN
China
Prior art keywords
information
layer
protocol layer
printing
printed
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.)
Active
Application number
CN201811378799.2A
Other languages
Chinese (zh)
Other versions
CN109450689A (en
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811378799.2A priority Critical patent/CN109450689B/en
Publication of CN109450689A publication Critical patent/CN109450689A/en
Application granted granted Critical
Publication of CN109450689B publication Critical patent/CN109450689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions

Abstract

The invention discloses a log printing method, a log printing device, a storage medium and computer equipment, which can print logs in a layered mode. The method comprises the following steps: when a data processing request is received and protocol layer processing is carried out, and information analyzed by each protocol layer is stored, level parameters of the protocol layer corresponding to the information are increased; and when the log file is printed, printing the information of the corresponding protocol layer according to the set hierarchical parameters needing to be printed. By adopting the embodiment of the invention, the layered printing method is adopted, so that developers can track the execution of the I/O instruction according to the log information when analyzing the problem, and the problem is quickly analyzed and positioned.

Description

Log printing method and device, storage medium and computer equipment
Technical Field
The present invention relates to computer technologies, and in particular, to a method and an apparatus for printing a log, a storage medium, and a computer device.
Background
In the current distributed storage system, an iSCSI service is used for providing storage block services to the outside, the iSCSI service is realized by a tgt module, the hierarchy parameters of the existing tgt log submodule are disordered, more pure digital log information appears, and each piece of information is not divided according to the corresponding software hierarchy, so that developers and field maintenance personnel cannot accurately search service related information according to log contents, and problem positioning is seriously influenced.
Disclosure of Invention
In order to solve the technical problem, the invention provides a log printing method, a log printing device, a storage medium and a computer device, which can print logs in a layered manner.
In order to achieve the object of the present invention, the present invention provides a log printing method, including:
when a data processing request is received and protocol layer processing is carried out, and information analyzed by each protocol layer is stored, level parameters of the protocol layer corresponding to the information are increased;
and when the log file is printed, printing the information of the corresponding protocol layer according to the set hierarchical parameters needing to be printed.
In an exemplary embodiment, the increasing the level parameter of the protocol layer corresponding to the information includes:
and adding the level parameters of the protocol layer in the printing interface of the protocol layer corresponding to the information.
In an exemplary embodiment, when the information parsed by each protocol layer is saved, increasing a level parameter of the protocol layer corresponding to the information includes:
saving one or more of the following information analyzed by the iSCSI layer: target name and Initior address, and adding the hierarchical parameter of the iSCSI layer in the printing interface of the iSCSI layer;
saving one or more of the following information analyzed by the Scsi layer: the type and the content of the Scsi instruction are added, and the level parameters of the Scsi layer are added to the printing interface of the Scsi layer;
and storing the instruction enqueue information, the instruction dequeue information, the logical volume id, the instruction length, the request length and the data offset which are analyzed by the Bs layer, and adding the hierarchical parameters of the Bs layer in the printing interface of the Bs layer.
In an exemplary embodiment, the printing information of a corresponding protocol layer according to the set hierarchical parameters required to be printed includes:
and the tgtd daemon process saves the set level parameters to be printed as global variables, matches the level parameters to be printed with the level parameters in the printing interface of each protocol layer when the printing interface is called to print log information, and prints the information of the corresponding protocol layer into a log file when the matching is successful.
In order to achieve the object of the present invention, the present invention further provides a log printing apparatus, including a saving module and a printing module, wherein:
the storage module is used for increasing the level parameters of the protocol layers corresponding to the information when the information analyzed by each protocol layer is stored when a data processing request is received and the protocol layers are processed;
and the printing module is used for printing the information of the corresponding protocol layer according to the set hierarchical parameters needing to be printed when the log file is printed.
In an exemplary embodiment, the saving module increases a level parameter of a protocol layer corresponding to the information, and includes:
the storage module adds the level parameters of the protocol layer in the printing interface of the protocol layer corresponding to the information.
In an exemplary embodiment, when the saving module saves the information parsed by each protocol layer, increasing the level parameters of the protocol layer corresponding to the information includes:
the storage module stores one or more of the following information analyzed by the iSCSI layer: target name and Initior address, and adding the hierarchical parameter of the iSCSI layer in the printing interface of the iSCSI layer;
the storage module stores one or more of the following information analyzed by the Scsi layer: the type and the content of the Scsi instruction are added, and the level parameters of the Scsi layer are added to the printing interface of the Scsi layer;
the storage module stores the instruction enqueue information, the instruction dequeue information, the logical volume id, the instruction length, the request length and the data offset which are analyzed by the Bs layer, and adds the level parameters of the Bs layer in the printing interface of the Bs layer.
In an exemplary embodiment, the printing module prints information of a corresponding protocol layer according to the set hierarchical parameters to be printed, including:
and the tgtd daemon process in the printing module saves the set hierarchical parameters to be printed as global variables, matches the hierarchical parameters to be printed with the hierarchical parameters in the printing interface of each protocol layer when the printing interface is called to print log information, and prints the information of the corresponding protocol layer into a log file when the matching is successful.
In order to achieve the object of the present invention, the present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that the program, when executed by a processor, implements the steps of the above-mentioned method.
In order to achieve the object of the present invention, the present invention also provides a computer device, including a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements the steps of the above method when executing the program.
Compared with the prior art, the method comprises the steps of increasing the level parameters of the protocol layer corresponding to the information when the information analyzed by each protocol layer is stored when a data processing request is received and the protocol layer is processed; when the log file is printed, the information of the corresponding protocol layer is printed according to the set hierarchical parameters needing to be printed by using a hierarchical printing method, so that a developer can track the execution of an I/O instruction according to the log information when analyzing problems, and the problem is quickly analyzed and positioned.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a log printing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first log printing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a second step of the log printing method according to the second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a log printing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Example one
The present embodiment provides a method for printing a journal, as shown in fig. 1, the method including S11-S12:
s11, when a data processing request is received and protocol layer processing is carried out, and information analyzed by each protocol layer is stored, increasing the level parameters of the protocol layer corresponding to the information;
and S12, when the log file is printed, printing the information of the corresponding protocol layer according to the set hierarchical parameters needing to be printed.
In the embodiment of the invention, the layered printing method is used, so that a developer can track the execution of the I/O instruction according to the log information when analyzing the problem, and the problem is quickly analyzed and positioned.
In one exemplary embodiment the data processing request comprises a read request and/or a write request.
In an exemplary embodiment, the increasing the level parameter of the protocol layer corresponding to the information includes:
and adding the level parameters of the protocol layer in the printing interface of the protocol layer corresponding to the information.
In an exemplary embodiment, when the information parsed by each protocol layer is saved, increasing a level parameter of the protocol layer corresponding to the information includes:
saving one or more of the following information analyzed by the iSCSI layer: target name and Initior address, and adding the hierarchical parameter of the iSCSI layer in the printing interface of the iSCSI layer;
saving one or more of the following information analyzed by the Scsi layer: the type and the content of the Scsi instruction are added, and the level parameters of the Scsi layer are added to the printing interface of the Scsi layer;
and storing the instruction enqueue information, the instruction dequeue information, the logical volume id, the instruction length, the request length and the data offset which are analyzed by the Bs layer, and adding the hierarchical parameters of the Bs layer in the printing interface of the Bs layer.
In an exemplary embodiment, in a storage technology based on the internet and under the Scsi protocol, the iessi layer, the Scsi layer, the Bs layer, the Target name, and the Initior address respectively have the following meanings:
scsi: an independent processor standard for a system-level interface between a computer and a smart device;
b, layer B: back-end storage;
target: the storage device, the iSCSI target end, can be simply understood as a server end;
initior: the iSCSI starting end can be simply understood as a client;
in an exemplary embodiment, if a level parameter is added after parsing out a Target name and an Initiator address, the method includes: a hierarchical list is defined, the hierarchical parameters of each layer are replaced by a character string in the hierarchical parameters (e.g., "log 1: iscsi init _ ip: xxx target _ name: xxx"), and each layer corresponds to a numerical value in the tgt module, such as 1 for iscsi layer, 2 for sci layer, and 3 for bs layer.
In an exemplary embodiment, the instruction enqueue information and the instruction dequeue information refer to that an instruction has two operations of entering a message queue and exiting the message queue in the execution process.
In an exemplary embodiment, the printing the information of the corresponding protocol layer according to the set hierarchical parameters to be printed further comprises: printing one or more of the following information on each layer: I/O instructions.
In an exemplary embodiment, the printing information of a corresponding protocol layer according to the set hierarchical parameters required to be printed includes:
and the tgtd daemon process saves the set level parameters to be printed as global variables, matches the level parameters to be printed with the level parameters in the printing interface of each protocol layer when the printing interface is called to print log information, and prints the information of the corresponding protocol layer into a log file when the matching is successful.
tgt provides support for creating and maintaining SCSI Target drivers (including iSCSI, FC, SRP, etc.). In other words, it can convert block devices, files into SCSI LUs and provide common transport means in SANs such as iSCSI, iSER, etc. to access these LUs. The iScsi service iScsi technology is a SCSI command set for hardware devices that can run on top of IP protocols, enabling SCSI protocols to be run over IP networks, enabling routing over, for example, high-speed gigabit ethernet.
In the embodiment of the invention, when a data processing request is received and protocol layer processing is carried out, and information analyzed by each protocol layer is stored, level parameters of the protocol layer corresponding to the information are increased; and when the log file is printed, printing the information of the corresponding protocol layer according to the set hierarchical parameters needing to be printed. By using the layered printing method, a developer can track the execution of the I/O instruction according to the log information when analyzing the problem, and quickly analyze and locate the problem.
Example two
This embodiment specifically describes the method of the above embodiment. The embodiment provides a tgt log module layered printing method based on distributed storage, which divides the existing log information according to the software hierarchy to which the existing log information belongs, expands the hierarchy parameters, displays the corresponding state, the corresponding Target name, the Initior address, the instruction content, the request length and the corresponding thread information of an I/O instruction in the execution process, and increases a log hierarchy setting interface, so that a problem locator can clearly perceive the whole I/O execution process and quickly locate the problem, and the log printing requirement of the tgt module in a distributed storage system is met.
(1) When a data processing request is received and protocol layer processing is carried out, and information analyzed by each protocol layer is stored, level parameters of the protocol layer corresponding to the information are increased;
software layers are divided in the tgt module, and specific layer parameters are added in log printing interfaces of all layers, so that the tgt log module realizes information layering.
As shown in fig. 2, after receiving the request, the Target end enters an iScsi layer, parses out the Target name and initior address corresponding to the request in the layer, stores the Target name and initior address into a message structure body for context printing, and transmits an iScsi level parameter into a printing interface of the layer. And then entering an Scsi layer, transmitting Scsi level parameters in a printing interface of the Scsi layer, analyzing the Scsi instruction type, and converting the instruction type into a character string and printing the character string. Then, the Bs layer is entered, and the layer level parameters are added when the enqueue and the dequeue are instructed and the Bs layer level parameters are transmitted into the printing interface.
(2) When the log file is printed, printing information of a corresponding protocol layer according to the set hierarchical parameters needing to be printed;
and in the tgt module, a log level setting command is added, and logs can be selectively printed.
As shown in fig. 3, a tgt log level setting command is newly added in the storage system, the user selects the log level to be printed through the command, and the set level data is stored in the tgtd daemon process. When the program calls the printing interface, the level parameters transmitted by the printing interface are matched with the level data set through the command, if the condition is met, the printing is saved in the log file, otherwise, the printing is returned, the printing is not executed, and therefore, the printing of the log can be controlled through the log level command.
The log of the tgt module is managed by adopting a layered printing method, so that a user can clearly perceive the execution process of I/O execution and the passed software levels, and can selectively print the information of some software levels in a log file, thereby facilitating the problem positioning and information screening of the user.
In the embodiment of the invention, a concept of software hierarchy is introduced to hierarchy parameters in the tgt module, a path passed by an I/O instruction in an execution process and detailed information corresponding to the instruction are determined, a tgt log hierarchy setting interface is added, and a user can selectively print logs of certain hierarchies through the interface.
EXAMPLE III
The present embodiment provides a log printing apparatus, and the description of the above method embodiment is also applicable to the present embodiment, and as shown in fig. 4, the apparatus includes a saving module 41 and a printing module 42, where:
the saving module 41 is configured to, when a data processing request is received and a protocol layer is processed, increase a level parameter of a protocol layer corresponding to information when the information analyzed by each protocol layer is saved;
the printing module 42 is configured to print information of a corresponding protocol layer according to the set hierarchical parameter to be printed when printing the log file.
In an exemplary embodiment, the saving module 41 increases a level parameter of a protocol layer corresponding to the information, including:
the saving module 41 adds the level parameters of the protocol layer in the printing interface of the protocol layer corresponding to the information.
In an exemplary embodiment, when the saving module 41 saves the information parsed by each protocol layer, increasing the level parameters of the protocol layer corresponding to the information includes:
the saving module 41 saves one or more of the following information analyzed by the iScsi layer: target name and Initior address, and adding the hierarchical parameter of the iSCSI layer in the printing interface of the iSCSI layer;
the saving module 41 saves one or more of the following information analyzed by the Scsi layer: the type and the content of the Scsi instruction are added, and the level parameters of the Scsi layer are added to the printing interface of the Scsi layer;
the storage module 41 stores the instruction enqueue information, instruction dequeue information, logical volume id, instruction length, request length, and data offset parsed by the Bs layer, and adds the hierarchical parameter of the Bs layer to the print interface of the Bs layer.
In an exemplary embodiment, the printing module 42 prints information of a corresponding protocol layer according to the set hierarchical parameters to be printed, including:
the tgtd daemon process in the printing module 42 saves the set level parameters to be printed as global variables, matches the level parameters to be printed with the level parameters in the printing interface of each protocol layer when the printing interface is called to print log information, and prints the information of the corresponding protocol layer into a log file when the matching is successful.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores a computer program; the computer program, when executed, can implement the log printing method provided by the foregoing embodiments, for example, execute the method shown in fig. 1.
An embodiment of the present invention further provides a computer device, which may be configured as shown in fig. 5, and includes a processor 51, a memory 52, and a computer program stored in the memory and running on the processor, where the processor executes the computer program to implement some or all of the steps in one or the second embodiment.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (8)

1. A method of printing a journal, the method comprising:
when a data processing request is received and protocol layer processing is carried out, and information analyzed by each protocol layer is stored, level parameters of the protocol layer corresponding to the information are increased;
when the log file is printed, printing information of a corresponding protocol layer according to the set hierarchical parameters needing to be printed;
the printing of the information of the corresponding protocol layer according to the set hierarchical parameters needing to be printed comprises the following steps:
and the tgtd daemon process saves the set level parameters to be printed as global variables, matches the level parameters to be printed with the level parameters in the printing interface of each protocol layer when the printing interface is called to print log information, and prints the information of the corresponding protocol layer into a log file when the matching is successful.
2. The method of claim 1, wherein said adding the level parameter of the protocol layer corresponding to the information comprises:
and adding the level parameters of the protocol layer in the printing interface of the protocol layer corresponding to the information.
3. The method of claim 2, wherein the step of increasing the level parameters of the protocol layer corresponding to the information when saving the information parsed by each protocol layer comprises:
saving one or more of the following information analyzed by the iSCSI layer: target name and Initior address, and adding the hierarchical parameter of the iSCSI layer in the printing interface of the iSCSI layer;
saving one or more of the following information analyzed by the Scsi layer: the type and the content of the Scsi instruction are added, and the level parameters of the Scsi layer are added to the printing interface of the Scsi layer;
and storing the instruction enqueue information, the instruction dequeue information, the logical volume id, the instruction length, the request length and the data offset which are analyzed by the Bs layer, and adding the hierarchical parameters of the Bs layer in the printing interface of the Bs layer.
4. A journal printing apparatus, characterized in that the apparatus comprises a saving module and a printing module, wherein:
the storage module is used for increasing the level parameters of the protocol layers corresponding to the information when the information analyzed by each protocol layer is stored when a data processing request is received and the protocol layers are processed;
the printing module is used for printing information of a corresponding protocol layer according to the set hierarchical parameters needing to be printed when the log file is printed;
the printing module prints information of a corresponding protocol layer according to the set hierarchical parameters needing to be printed, and the method comprises the following steps:
and the tgtd daemon process in the printing module saves the set level parameters to be printed as global variables, matches the level parameters to be printed with the level parameters in the printing interface of each protocol layer when the printing interface is called to print log information, and prints the information of the corresponding protocol layer into a log file when the matching is successful.
5. The apparatus of claim 4, wherein the saving module increases a level parameter of the protocol layer corresponding to the information, and comprises:
the storage module adds the level parameters of the protocol layer in the printing interface of the protocol layer corresponding to the information.
6. The apparatus of claim 5, wherein the saving module, when saving the information parsed by each protocol layer, increases a level parameter of the protocol layer corresponding to the information, including:
the storage module stores one or more of the following information analyzed by the iSCSI layer: target name and Initior address, and adding the hierarchical parameter of the iSCSI layer in the printing interface of the iSCSI layer;
the storage module stores one or more of the following information analyzed by the Scsi layer: the type and the content of the Scsi instruction are added, and the level parameters of the Scsi layer are added to the printing interface of the Scsi layer;
the storage module stores the instruction enqueue information, the instruction dequeue information, the logical volume id, the instruction length, the request length and the data offset which are analyzed by the Bs layer, and adds the level parameters of the Bs layer in the printing interface of the Bs layer.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-3 when executing the program.
CN201811378799.2A 2018-11-19 2018-11-19 Log printing method and device, storage medium and computer equipment Active CN109450689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811378799.2A CN109450689B (en) 2018-11-19 2018-11-19 Log printing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811378799.2A CN109450689B (en) 2018-11-19 2018-11-19 Log printing method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN109450689A CN109450689A (en) 2019-03-08
CN109450689B true CN109450689B (en) 2022-02-22

Family

ID=65553258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811378799.2A Active CN109450689B (en) 2018-11-19 2018-11-19 Log printing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN109450689B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825069B (en) * 2019-11-07 2022-09-13 德明通讯(上海)股份有限公司 Fault detection method and system for rapidly positioning OBD equipment fault
CN112130781A (en) * 2020-09-22 2020-12-25 平安科技(深圳)有限公司 Log printing method and device, electronic equipment and storage medium
CN112596993B (en) * 2020-12-17 2023-06-20 杭州安恒信息技术股份有限公司 Log layering method, system, readable storage medium and computer device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11122306A (en) * 1997-10-20 1999-04-30 Matsushita Electric Ind Co Ltd Dial-up router
CN1642097A (en) * 2004-01-02 2005-07-20 联想(北京)有限公司 Journal accounting method and system
JP2009159137A (en) * 2007-12-25 2009-07-16 Duaxes Corp Protocol converting apparatus
CN102047717A (en) * 2008-03-28 2011-05-04 爱立信电话股份有限公司 Method and system for telecommunications using layer 3 packets obtained from a sequence of layer 2 radio link control layer data frames
CN103392207A (en) * 2011-10-05 2013-11-13 Lsi公司 Self-journaling and hierarchical consistency for non-volatile storage
CN105335434A (en) * 2014-08-11 2016-02-17 腾讯科技(北京)有限公司 Log management method and device, and electronic equipment
CN106571896A (en) * 2016-11-11 2017-04-19 西安长远电子工程有限责任公司 Radar communication method
CN107577771A (en) * 2017-09-07 2018-01-12 北京海融兴通信息安全技术有限公司 A kind of big data digging system
CN107645562A (en) * 2017-10-12 2018-01-30 广州爱九游信息技术有限公司 Data transmission processing method, device, equipment and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7546365B2 (en) * 2002-04-30 2009-06-09 Canon Kabushiki Kaisha Network device management system and method of controlling same
CN107577577A (en) * 2017-09-13 2018-01-12 郑州云海信息技术有限公司 Method, apparatus, system and the computer-readable recording medium of log-rank printing

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11122306A (en) * 1997-10-20 1999-04-30 Matsushita Electric Ind Co Ltd Dial-up router
CN1642097A (en) * 2004-01-02 2005-07-20 联想(北京)有限公司 Journal accounting method and system
JP2009159137A (en) * 2007-12-25 2009-07-16 Duaxes Corp Protocol converting apparatus
CN102047717A (en) * 2008-03-28 2011-05-04 爱立信电话股份有限公司 Method and system for telecommunications using layer 3 packets obtained from a sequence of layer 2 radio link control layer data frames
CN103392207A (en) * 2011-10-05 2013-11-13 Lsi公司 Self-journaling and hierarchical consistency for non-volatile storage
CN105335434A (en) * 2014-08-11 2016-02-17 腾讯科技(北京)有限公司 Log management method and device, and electronic equipment
CN106571896A (en) * 2016-11-11 2017-04-19 西安长远电子工程有限责任公司 Radar communication method
CN107577771A (en) * 2017-09-07 2018-01-12 北京海融兴通信息安全技术有限公司 A kind of big data digging system
CN107645562A (en) * 2017-10-12 2018-01-30 广州爱九游信息技术有限公司 Data transmission processing method, device, equipment and system

Also Published As

Publication number Publication date
CN109450689A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109450689B (en) Log printing method and device, storage medium and computer equipment
US9397901B2 (en) Methods, systems, and computer readable media for classifying application traffic received at a network traffic emulation device that emulates multiple application servers
US20230205603A1 (en) Communications Framework for Multi-Cluster Management Systems
EP3939207B1 (en) Semantic detection and resolution of conflicts and redundancies in network function virtualization policies
US20170126603A1 (en) Distributing retained messages information in a clustered publish/subscribe system
CN109831466B (en) Micro-service business processing method and nginx server
US20160277544A1 (en) Protocol data unit interface
JP2002182909A (en) Method to share application definition
EP3884620A1 (en) Fast session restoration for latency sensitive middleboxes
US11481508B2 (en) Data access monitoring and control
CN108595505A (en) The method and apparatus of data query
CN112769802A (en) Access verification method and device based on server, electronic equipment and storage medium
CN109286684B (en) Communication connection processing method and device, proxy server and storage medium
US20190129743A1 (en) Method and apparatus for managing virtual machine
US20180052629A1 (en) Storing data in storage area
CN114465956B (en) Method and device for limiting flow rate of virtual machine, electronic equipment and storage medium
CN114780333A (en) Log printing control method and device
CN112769928B (en) Information interaction method and device based on service scene
CN115080771A (en) Data processing method and device based on artificial intelligence, medium and gateway equipment
CN113282347A (en) Plug-in operation method, device, equipment and storage medium
CN112910697A (en) Fault processing method and device
US9055169B2 (en) Printing frames of a video
US20130332591A1 (en) Dynamic script interpretation in remote contexts
CN115103020B (en) Data migration processing method and device
US10079739B2 (en) Computer-implemented method for handling log file

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
GR01 Patent grant
GR01 Patent grant