Method and device for generating XML log
A log and node technology, applied in the computer field, to achieve the effect of improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] refer to figure 1 , shows a schematic flowchart of an embodiment of a method for generating an XML log according to the present application.
[0046] The embodiment of the present application provides a method for generating XML logs, which is suitable for generating massive analyzable logs. The method can be executed by a log analyzer, such as figure 1 As shown, the method may include the following steps:
[0047] Step S101, receiving an instruction to create a top-level log node, and creating a top-level log node corresponding to the instruction, where the top-level log node includes the content of the top-level log node and an xml node.
[0048] In this implementation, a log pool (also called a node pool) may be established in advance. Wherein, the elements of the node pool may specifically include a top-level log node, such as a top-level xml node. When an instruction to create a top-level log node is received, the top-level log node corresponding to the instruct...
Embodiment 2
[0059] refer to figure 2 , which shows a flow chart of the steps of a preferred embodiment of a method for generating an XML log of the present application, which may specifically include the following steps:
[0060] Step S201, receiving an instruction to create a top-level log node, and creating a top-level log node corresponding to the instruction.
[0061] Wherein, the top-level log node may specifically include the content of the top-level log node and the xml node.
[0062] Step S202, receiving an instruction for creating a sub-log node, and creating a sub-log node corresponding to the instruction for creating a sub-log node.
[0063] The sub-log node may specifically include the content of the sub-log node and the pointer of the xml node passed to the sub-log node by the top-level log node.
[0064] Step S203, configuring error attributes for the top-level log node and the sub-log nodes; and setting the corresponding status values of the error attributes of the top...
Embodiment 3
[0072] refer to image 3 , shows an example diagram of the steps of a method for generating an XML log in the present application. Specifically, the following steps may be included:
[0073] Step S301, generating an XML root node according to a trigger event.
[0074] Specifically, the trigger time may include: a trigger event when the user clicks on the graphical interface, and a trigger event generated by a timer. When a trigger event is detected, the log analyzer can determine a method for triggering XML logs, that is, an XML root node can be generated through a pre-established log pool, such as an XML root node pool.
[0075] Step S302, configuring attribute information for the XML node.
[0076] After generating the XML root node, the log analyzer can configure attribute information for the XML root node, such as setting time attributes, error attributes, etc., and set corresponding initial attribute values for each attribute, such as setting the attribute value of t...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com