CN111177089B - Log processing code generation method and device, computer system and storage medium - Google Patents

Log processing code generation method and device, computer system and storage medium Download PDF

Info

Publication number
CN111177089B
CN111177089B CN201911425704.2A CN201911425704A CN111177089B CN 111177089 B CN111177089 B CN 111177089B CN 201911425704 A CN201911425704 A CN 201911425704A CN 111177089 B CN111177089 B CN 111177089B
Authority
CN
China
Prior art keywords
log
field
mode
data structure
generating
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
CN201911425704.2A
Other languages
Chinese (zh)
Other versions
CN111177089A (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.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing 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 Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN201911425704.2A priority Critical patent/CN111177089B/en
Publication of CN111177089A publication Critical patent/CN111177089A/en
Application granted granted Critical
Publication of CN111177089B publication Critical patent/CN111177089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The present disclosure provides a method for generating log processing code. The method comprises the following steps: determining a custom file, wherein the custom file is used for describing a log structure and a log processing mode, and the log structure comprises at least one log type, a plurality of log fields corresponding to each log type and field attributes; generating a data structure of the log according to the log structure and the log processing mode; determining a template file according to the data structure of the log, wherein the template file is used for describing an access interface of a log field in the data structure and an interface corresponding to a log processing mode; and generating codes for processing the log according to the access interface of the log field and the interface corresponding to the log processing mode. The present disclosure also provides a log processing code generating apparatus, a computer system, and a computer-readable storage medium.

Description

Log processing code generation method and device, computer system and storage medium
Technical Field
The present disclosure relates to the field of data processing technology, and more particularly, to a method and apparatus for generating log processing code, a computer system, and a computer readable storage medium.
Background
The log is a data file used for recording parameters such as user operation, system running state and the like, and can be used for a user to know the running condition of the equipment and the service processing condition. Journals tend to produce large amounts of data as the device operates, so various analytical processing of the journals is a conventional way of obtaining valid information.
Currently, when processing logs, if changes are involved in the structure of the change log or the processing mode of the change log, for example, the types of the change log, the fields of the change log, the serialization mode of the change log, the storage mode of the change log, etc., the codes related to the processes need to be changed. However, during the development or maintenance process of the log, a large number of log processing operations exist, and the places related to code modification are more, so that the development workload is increased, and the subsequent expansion is inconvenient.
Disclosure of Invention
In view of this, the present disclosure provides a method and apparatus for generating log processing code, a computer system, and a computer-readable storage medium.
One aspect of the present disclosure provides a method for generating log processing code, including:
determining a custom file, wherein the custom file is used for describing a log structure and a log processing mode, the log structure comprises at least one log type, and each log type comprises a plurality of log fields and field attributes;
Generating a data structure of a log according to the log structure and the log processing mode;
determining a template file according to the data structure of the log, wherein the template file is used for describing an access interface of a log field in the data structure and an interface corresponding to the log processing mode; and
and generating codes for processing the log according to the access interface of the log field and the interface corresponding to the log processing mode.
According to an embodiment of the present disclosure, the method further comprises:
acquiring a first updating operation, wherein the first updating operation is used for updating the log type and/or the log field;
modifying the custom file in response to the first update operation;
generating a data structure of the updated log according to the modified custom file;
determining an updated template file according to the data structure of the updated log; and
and generating updated codes for processing logs according to the updated template file.
According to an embodiment of the present disclosure, the method further comprises:
acquiring a second updating operation, wherein the second updating operation is used for updating the log processing mode;
generating a data structure of an updated log in response to the second update operation;
Determining an updated template file according to the data structure of the updated log; and
and generating updated codes for processing logs according to the updated template file.
According to an embodiment of the disclosure, the log processing manner includes at least one of: log serialization, log deserialization, log storage, or log query.
According to an embodiment of the present disclosure, determining a template file from a data structure of the log includes:
generating an access interface of a log field in the data structure, and assigning a value to the log field; and
at least one of the following operations:
generating an interface for carrying out serialization processing on the logs according to the log serialization mode;
generating an interface for performing deserialization processing on the log according to the log deserialization mode;
generating an interface for storing the log according to the log storage mode; and
and generating an interface for inquiring the log according to the log inquiring mode.
According to an embodiment of the present disclosure, the generating an interface for serializing a log according to the log serialization manner includes:
If the log serialization mode is a text mode, converting the log field and the field attribute corresponding to the log field in the data structure into a text format to obtain a text character string corresponding to the data structure; and/or the number of the groups of groups,
if the log serialization mode is a binary mode, converting a log field and a field attribute corresponding to the log field in the data structure into a binary format to obtain a binary string corresponding to the data structure;
the generating the interface for performing the deserialization processing on the log according to the log deserialization mode comprises the following steps:
if the log deserialization mode is a text mode, converting a text character string corresponding to the data structure into a log field in the data structure and a field attribute corresponding to the log field; and/or the number of the groups of groups,
if the log deserialization mode is a binary mode, converting a binary string corresponding to the data structure into a log field in the data structure and a field attribute corresponding to the log field;
the generating an interface for storing the log according to the log storage mode comprises the following steps:
if the log storage mode is a database storage mode, generating a corresponding database insertion statement according to the log field and the field attribute corresponding to the log field in the data structure; and/or the number of the groups of groups,
If the log storage mode is a file storage mode, writing the value of the log field into a corresponding file according to the log field and the field attribute corresponding to the log field in the data structure;
the generating the interface for inquiring the log according to the log inquiring mode comprises the following steps:
if the log query mode is a database query mode, generating a corresponding database query statement according to the log field and the field attribute corresponding to the log field in the data structure; and/or the number of the groups of groups,
and if the log query mode is a file query mode, reading the value of the log field from the corresponding file according to the log field in the data structure and the field attribute corresponding to the log field.
According to an embodiment of the disclosure, the generating the code for processing the log according to the access interface of the log field in the data structure and the interface corresponding to the log processing mode includes:
and analyzing the access interface of the log field in the data structure and the interface corresponding to the log processing mode into corresponding codes by using a template analysis program.
Another aspect of the present disclosure provides a log processing code generating apparatus, including: the first determining unit is used for determining a custom file, wherein the custom file is used for describing a log structure and a log processing mode, the log structure comprises at least one log type, and each log type comprises a plurality of log fields and field attributes;
The first generation unit is used for generating a data structure of the log according to the log structure and the log processing mode;
the second determining unit is used for determining a template file according to the data structure of the log, wherein the template file is used for describing an access interface of a log field in the data structure and an interface corresponding to the log processing mode; and
and the second generating unit is used for generating codes for processing the logs according to the access interfaces of the log fields and the interfaces corresponding to the log processing modes.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are configured to implement a method as described above.
Another aspect of the present disclosure provides a computer program comprising computer executable instructions which when executed are for implementing a method as described above.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; and a storage device for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the preceding claims.
According to the embodiment of the disclosure, a custom file is used to determine a log structure and a log processing mode, a data structure of a log is generated according to the log structure and the log processing mode, and a template file of the log is determined according to the data structure of the log. The method comprises the steps of generating a log-structured access interface and a log processing mode access interface in a template file, and generating a code for processing a log according to the log-structured access interface and the log processing mode access interface. The template file can be used for automatically generating codes for processing logs, so that the technical problem of development workload increase caused by more code changes in the prior art is at least partially solved, and the technical effects of improving log development efficiency and reducing maintenance cost are achieved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates an application scenario of a method and apparatus for generating log processing code according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of generating log processing code according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow chart of a method of generating log processing code according to another embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a method of generating log processing code according to another embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow diagram schematically showing determining a template file from a data structure of a log according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of a log processing code generating apparatus according to an embodiment of the present disclosure; and
FIG. 7 schematically illustrates a block diagram of a computer system suitable for implementing a method of generating log processing code, in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides a method for generating log processing codes. The method comprises the steps of determining a custom file, wherein the custom file is used for describing a log structure and a log processing mode, and the log structure comprises at least one log type, a plurality of log fields corresponding to each log type and field attributes; generating a data structure of the log according to the log structure and the log processing mode; determining a template file according to the data structure of the log, wherein the template file is used for describing an access interface of a log field in the data structure and an interface corresponding to a log processing mode; and generating codes for processing the log according to the access interface of the log field and the interface corresponding to the log processing mode.
Fig. 1 schematically illustrates an application scenario of a method and an apparatus for generating log processing code according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario may include an electronic device 100, and according to an embodiment of the present disclosure, a log customization file may be determined by the electronic device 100, where the customization file may include a log structure and a log processing manner, and the log structure may include one or more log types, a plurality of log fields and field attributes corresponding to each log type, and the log processing manner may include a log serialization manner, a log deserialization manner, a log storage manner, or a log query manner. The data structure of the log corresponding to the log type can be obtained by analyzing the custom file, the template file of the log can be determined according to the data structure of the log, and the interface corresponding to the log structure and the log processing mode can be automatically generated by analyzing the template file, wherein the interface can be a code capable of accessing the log structure and realizing the log processing mode. In the example shown in fig. 1, the electronic device 100 is a notebook computer, and it should be noted that fig. 1 is only an example of a scenario in which the embodiments of the present disclosure may be applied, so as to help those skilled in the art understand the technical content of the present disclosure, but not to mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments, or scenarios.
Fig. 2 schematically illustrates a flowchart of a method of generating log processing code according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S204.
In operation S201, a custom file is determined, wherein the custom file is used to describe a log structure and a log processing manner, the log structure including at least one log type, a plurality of log fields corresponding to each log type, and field attributes.
The log processing mode comprises at least one of the following steps: log serialization, log deserialization, log storage, or log query.
According to embodiments of the present disclosure, a custom file may be understood as a configuration file in which log structures and log handling manners may be defined. Custom files may be in json, xml, or ini file formats.
The log structure may include log types, log fields corresponding to each log type, and field attributes of the log fields. For example, log types may include system logs, operation logs, traffic logs, etc., log fields may include IP, values of the log fields may include specific IP addresses, field attributes of the log fields may include field sizes, field types, storage attributes, etc., where the storage attributes may include database column names or file names, etc.
The log processing mode can be a serialization mode, a reverse serialization mode, a storage mode, a query mode and the like of the log. The serialization of the log may be understood as packaging the log according to a certain format, and the anti-serialization of the log may be understood as parsing the packaged log into the log according to the corresponding packaging format. The serialization of the log may be in a text or binary manner. The log storage mode can be a database storage mode or a file storage mode, and correspondingly, the log query mode can be a database query mode or a file query mode.
It can be appreciated that a plurality of different log structures or log processing modes can be defined by adopting the customized file, so that the purpose of flexibly customizing the log can be realized.
In operation S202, a data structure of the log is generated according to the log structure and the log processing manner.
According to the embodiment of the disclosure, the customized file can be parsed by the parsing program, and the log structure and the log processing mode in the customized file are parsed into the data structure of the log. The parser may use any programming language, such as C, go, java, or others. For example, an analysis program is written in Go language, and a json format custom file is analyzed to generate a data structure corresponding to the log type.
According to embodiments of the present disclosure, the data structure of the log may be a kind of structure. It is understood that each log type may correspond to a structure including a plurality of log fields corresponding to the log type, field attributes corresponding to the log fields, and a log processing manner.
In operation S203, a template file is determined according to the data structure of the log, where the template file is used to describe an access interface of a log field in the data structure and an interface corresponding to a log processing manner.
According to the embodiment of the disclosure, the interface of the log field and the log processing mode can be written by using a programming language to obtain the template file, wherein the programming language can be any programming language, for example, a C language, a Go language, a Java language or others, and the interface can be a code written by using any programming language.
According to embodiments of the present disclosure, an interface for each field in a data structure of a log is written in a programming language, which can access the log fields and can assign a value to each log field. The data structure of the log may be understood as a structure body including a plurality of log fields, field attributes corresponding to the log fields, and a log processing manner.
According to embodiments of the present disclosure, the specific implementation code of the log serialization manner in the data structure of the log may be written in a programming language. For example, the log may be in a text format, the text format is a Key-Value pair, and a Key (keyword) name may be specified. The code for implementing this serialization approach may be described as: and circularly traversing each log field of the data structure, converting the Key of each log field and the value of the field into a key= "value" format, for example, if the Key of a certain field is sip and the value is 1.1.1.1, serializing the field into sip= "1.1.1.1", and obtaining a text string after serializing all the fields in the data structure.
According to embodiments of the present disclosure, the specific implementation code of the log deserialization approach in the data structure of the log may be written in a programming language. The anti-serialization manner of the log may be determined according to the serialization manner of the log, for example, the serialization manner of the log may be a text manner, the anti-serialization of the log may be parsed according to a text format, and a code for implementing the anti-serialization manner may be described as follows: each Key-Value pair in the serialized text string is parsed into a Key of a log field and a Value of the log field, for example, text format sip= "1.1.1.1" is parsed into a Key of the log field as sip, and the Value is 1.1.1.1.
According to embodiments of the present disclosure, the concrete implementation code of the log storage mode in the data structure of the log may be written in a programming language. For example, the log storage mode may be a database storage mode, and the code of the log storage mode may be implemented: and according to the storage attribute of the log field, cycling through each field and the value of the field of the data structure of the log to generate a corresponding Insert SQL statement inserted into the database, wherein the storage attribute can be a database column name.
According to embodiments of the present disclosure, a programming language may be employed to write the concrete implementation code of the log query in the data structure of the log. For example, the query mode of the log is determined according to the storage mode of the log, for example, the log storage mode may be a database storage mode, the query mode of the log may be a query from a database, and the code for implementing the query mode of the log may be described as: traversing each field in the data structure of the log according to the storage attribute of the log field, and generating a Select SQL statement corresponding to the query database, wherein the storage attribute can be a database column name.
It will be appreciated that the template file may be written in any programming language, increasing the flexibility of the template file.
In operation S204, a code for processing the log is generated according to the access interface of the log field and the interface corresponding to the log processing mode.
According to an embodiment of the present disclosure, generating the code for processing the log according to the access interface of the log field and the interface corresponding to the log processing manner may specifically include parsing the access interface of the log field and the interface corresponding to the log processing manner in the data structure into corresponding codes using a template parsing program in operation S204.
According to the embodiment of the disclosure, a template analysis program can be written in a programming language, a template file is loaded, and an access interface of each log field in the template file and an interface corresponding to a log processing mode are analyzed into corresponding codes, wherein the codes are related to processing such as log storage, log inquiry, log serialization or log deserialization. The programming language for writing the template analysis program can be any programming language, and the analyzed code can also be any programming language. For example, a template file may be written in the Go language, and correspondingly, a template parser may be written in the Go language, which parses the Go language code into a corresponding C language code.
According to the embodiment of the disclosure, a log structure and a log processing mode are determined through a custom file, a data structure of a log is generated according to the log structure and the log processing mode, a template file of the log is determined according to the data structure of the log, wherein an access interface of the log structure and an access interface of the log processing mode are generated in the template file, and codes for processing the log are generated according to the access interface of the log structure and the access interface of the log processing mode. Because the processing modes such as a log structure, a log serialization mode, an anti-serialization mode, a storage mode and/or a query mode are determined by using the custom file, the template file is used for automatically generating codes for accessing the log structure and codes for realizing processing operations such as log serialization, anti-serialization, storage and/or query, and the like, the code for processing the log is written manually, so that the log development efficiency can be greatly improved, the maintenance cost is reduced, the error rate is reduced, and the subsequent log expansion is facilitated.
Fig. 3 schematically illustrates a flowchart of a method of generating log processing code according to another embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S301 to S305.
In operation S301, a first update operation is acquired for updating the log type and/or the log field.
According to embodiments of the present disclosure, the log structure may change, for example, one log type may be added or subtracted, or one log field may be added or subtracted.
In operation S302, the custom file is modified in response to the first update operation.
According to embodiments of the present disclosure, after an update operation such as adding or subtracting a log type, or adding or subtracting a log field, is determined, the customization file may be modified according to the update operation, e.g., a log type may be added or subtracted, or a log field may be added or subtracted, in the customization file.
In operation S303, a data structure of the updated log is generated according to the modified custom file.
According to an embodiment of the present disclosure, a log structure in a modified custom file is changed, the modified custom file is parsed, and the updated log structure in the custom file is parsed into a data structure of an updated log. The data structure of the log may be a structure.
In operation S304, an updated template file is determined according to the data structure of the updated log.
According to the embodiment of the disclosure, the interface of the log field and the log processing mode is written by using a programming language, so that a template file can be obtained, wherein the programming language can be any programming language, for example, a C language, a Go language, a Java language or others, and the interface can be understood as a code written by any programming language.
According to an embodiment of the present disclosure, an interface for each field in the data structure of the updated log is written in a programming language, where the interface may access the log field or assign a value to each log field.
In operation S305, updated codes for processing logs are generated from the updated template file.
According to the embodiment of the disclosure, a template analysis program is written by a programming language, a template file is loaded, and an access interface of an updated log field in the template file is analyzed into a corresponding code. The programming language for writing the template parsing program can be any programming language.
Fig. 4 schematically illustrates a flowchart of a method of generating log processing code according to another embodiment of the present disclosure.
As shown in fig. 4, the method includes operations S401 to S404.
In operation S401, a second update operation is acquired, the second update operation being used to update the log processing manner.
According to embodiments of the present disclosure, the log processing manner may vary, such as a change log serialization manner, a change log storage manner, and the like.
In operation S402, generating a data structure of an updated log in response to the second update operation;
According to the embodiment of the disclosure, after determining the updated log processing mode, the data structure of the updated log may be correspondingly generated according to the updated log processing mode.
In operation S403, an updated template file is determined according to the data structure of the updated log.
According to the embodiment of the disclosure, the template file may be updated according to the data structure of the updated log, for example, a serial interface or a storage interface may be added to the template file by using a programming language. The programming language may be any one of the languages.
In operation S404, updated codes for processing logs are generated from the updated template file.
According to the embodiment of the disclosure, a template analysis program can be written in a programming language, an updated template file is loaded, and an interface corresponding to the updated log processing mode in the template file is analyzed into a corresponding code. The programming language for writing the template parsing program can be any programming language.
Fig. 5 schematically illustrates a flowchart of determining a template file from a data structure of a log according to an embodiment of the present disclosure.
As shown in fig. 5, determining a template file from a data structure of a log may specifically include operations S501 to S502 in operation S203 according to an embodiment of the present disclosure.
In operation S501, an access interface for a log field in a data structure is generated and a value is assigned to the log field.
According to embodiments of the present disclosure, an interface for each field in a data structure of a log is written in a programming language, which can access the log fields and can assign a value to each log field.
In operation S502, at least one of operations S5021 to S5024 may be included:
in operation S5021, an interface for serializing the log is generated according to the log serialization manner.
According to an embodiment of the present disclosure, in operation S5021, if the log serialization manner is a text manner, converting the log field and the field attribute corresponding to the log field in the data structure into a text format, to obtain a text string corresponding to the data structure.
If the log serialization mode is a binary mode, converting the log field and the field attribute corresponding to the log field in the data structure into a binary format to obtain a binary string corresponding to the data structure.
According to embodiments of the present disclosure, the specific implementation code of the log serialization manner in the data structure of the log may be written in a programming language. For example, the log may be in a text format, the text format is a Key-Value pair, and a Key (keyword) name may be specified. The code of the serialization mode can be realized: and circularly traversing each log field of the data structure, converting the Key of each log field and the value of the field into a key= "value" format, for example, if the Key of a certain log field is sip and the value is 1.1.1.1, serializing the field into sip= "1.1.1.1", and obtaining a text character string after the serialization of all the fields in the data structure is completed.
According to embodiments of the present disclosure, the specific implementation code of the log serialization manner in the data structure of the log may be written in a programming language. For example, the serialization manner of the log may be a binary manner, the format of the text manner is Type-Length-Value (abbreviated as TLV format), and Type and Length may be specified. The code for implementing this serialization approach may be described as: and circularly traversing each log field of the data structure, converting the type, the length and the value of the field of each log field into Type Length Value format, for example, if the type of a certain log field is 0x01, the length is 0x07, and the value of the field is 1.1.1.1, then the field is serialized into t=0x01l=0x07 v= "1.1.1.1", and after the serialization of all the fields in the data structure is completed, a binary string is obtained.
In operation S5022, an interface for performing anti-serialization processing on the log is generated according to the log serialization manner.
According to an embodiment of the present disclosure, in operation S5022, if the log deserialization mode is a text mode, converting a text string corresponding to the data structure into a log field and a field attribute corresponding to the log field in the data structure may be specifically included.
If the log deserialization mode is a binary mode, converting the binary string corresponding to the data structure into a log field and a field attribute corresponding to the log field in the data structure.
According to embodiments of the present disclosure, the specific implementation code of the log deserialization approach in the data structure of the log may be written in some programming language. The reverse serialization manner of the log is determined according to the serialization manner of the log, for example, the serialization manner of the log may be a text manner, the reverse serialization of the log may be analyzed according to a text format, and a code for implementing the reverse serialization manner may be described as follows: each Key-Value pair in the serialized text string is parsed into a Key of a log field and a Value of the log field, for example, text format sip= "1.1.1.1" is parsed into a Key of the log field as sip, and the Value is 1.1.1.1.
According to embodiments of the present disclosure, the specific implementation code of the log deserialization approach in the data structure of the log may be written in a programming language. The reverse serialization manner of the log is determined according to the serialization manner of the log, for example, the serialization manner of the log may be a binary manner, the reverse serialization of the log may be resolved according to a binary format, and a code for implementing the reverse serialization manner may be described as follows: each Type Length Value of the serialized binary strings is parsed into a type, length, and value of a log field, e.g., the text format t=0x01l=0x07 v= "1.1.1.1" is parsed into a field type 0x01, a field length 0x07, a value of 1.1.1.1.
In operation S5023, an interface for storing a log is generated according to a log storage manner.
According to an embodiment of the present disclosure, in operation S5023, the method may specifically include generating a corresponding database insertion statement according to a log field and a field attribute corresponding to the log field in a data structure if the log storage mode is a database storage mode;
if the log storage mode is a file storage mode, writing the value of the log field into a corresponding file according to the log field and the field attribute corresponding to the log field in the data structure;
According to embodiments of the present disclosure, the concrete implementation code of the log storage mode in the data structure of the log may be written in a programming language. The log storage mode may be a database storage mode, and the code for implementing the storage mode may be described as: and generating a corresponding Insert SQL statement inserted into the database by circularly traversing each field and the value of the field of the data structure of the log according to the storage attribute of the field of the log, wherein the storage attribute can be a column name of the database.
According to embodiments of the present disclosure, the concrete implementation code of the log storage mode in the data structure of the log may be written in a programming language. The log storage mode may be a file storage mode, and the code for implementing the storage mode may be described as: and opening the corresponding file according to the storage attribute of the log field, and writing the value of each log field into the file, wherein the storage attribute can be a file name.
In operation S5024, an interface for querying a log is generated according to a log query mode.
According to an embodiment of the present disclosure, in operation S5024, if the log query mode is a database query mode, generating a corresponding database query statement according to the log field and the field attribute corresponding to the log field in the data structure;
If the log query mode is a file query mode, reading the value of the log field from the corresponding file according to the log field in the data structure and the field attribute corresponding to the log field.
According to embodiments of the present disclosure, a programming language may be employed to write the concrete implementation code of the log query in the data structure of the log. The query mode of the log is determined according to the storage mode of the log, for example, the log storage mode may be a database storage mode, the query mode of the log may be a query from a database, and a code for implementing the query mode of the log may be described as follows: traversing each field in the data structure of the log according to the storage attribute of the log field, and generating a Select SQL statement corresponding to the query database, wherein the storage attribute can be a database column name.
According to embodiments of the present disclosure, a programming language may be employed to write the concrete implementation code of the log query in the data structure of the log. The query mode of the log is determined according to the storage mode of the log, for example, the log storage mode may be a file storage mode, the query mode of the log may be a query from a file, and a code for implementing the query mode of the log may be described as follows: and opening the corresponding file according to the storage attribute of the log field, and reading the value of each log field in the file, wherein the storage attribute can be a file name.
Fig. 6 schematically illustrates a block diagram of a log processing code generating apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the log processing code generating apparatus 600 includes a first determining unit 601, a first generating unit 602, a second determining unit 603, and a second generating unit 604.
The first determining unit 601 is configured to determine a custom file, where the custom file is used to describe a log structure and a log processing manner, and the log structure includes at least one log type, a plurality of log fields corresponding to each log type, and field attributes.
The first generating unit 602 is configured to generate a data structure of the log according to the log structure and the log processing manner.
The second determining unit 603 is configured to determine a template file according to a data structure of the log, where the template file is used to describe an access interface of a log field in the data structure and an interface corresponding to a log processing manner.
The second generating unit 604 is configured to generate a code for processing the log according to the access interface of the log field and the interface corresponding to the log processing mode.
According to the embodiment of the disclosure, a log structure and a log processing mode are determined through a custom file, a data structure of a log is generated according to the log structure and the log processing mode, a template file of the log is determined according to the data structure of the log, wherein an access interface of the log structure and an access interface of the log processing mode are generated in the template file, and codes for processing the log are generated according to the access interface of the log structure and the access interface of the log processing mode. Because the processing modes such as a log structure, a log serialization mode, an inverse serialization mode, a storage mode and/or a query mode are determined by using the custom file, the template file is used for automatically generating codes for accessing the log structure and codes for realizing processing operations such as log serialization, inverse serialization, storage and/or query, and the like, the code for processing the log is written manually, so that the log development efficiency can be greatly improved, the maintenance cost is reduced, the error rate is reduced, and the subsequent log expansion is facilitated.
According to an embodiment of the present disclosure, the log processing code generating apparatus further includes a first acquiring unit, a first modifying unit, a third generating unit, and a fourth generating unit.
The first acquisition unit is used for acquiring a first updating operation, and the first updating operation is used for updating the log type and/or the log field.
The first modification unit is used for modifying the customized file in response to the first updating operation.
The third generating unit is used for generating a data structure of the updated log according to the modified custom file.
The third determining unit is used for determining an updated template file according to the data structure of the updated log.
The fourth generating unit is used for generating updated codes for processing logs according to the updated template files.
According to an embodiment of the present disclosure, the generation apparatus of the log processing code further includes a second acquisition unit, a fifth generation unit, a fourth determination unit, and a sixth generation unit.
The second acquisition unit is used for acquiring a second updating operation, and the second updating operation is used for updating the log processing mode.
The fifth generating unit is used for responding to the second updating operation and generating a data structure of the updated log.
And the fourth determining unit is used for determining the updated template file according to the data structure of the updated log.
And the sixth generating unit is used for generating updated codes for processing logs according to the updated template file.
According to an embodiment of the present disclosure, the log processing means includes at least one of: log serialization, log deserialization, log storage, or log query.
According to an embodiment of the present disclosure, the second determining unit includes a first generating module, a second generating module, a third generating module, a fourth generating module, and a fifth generating module.
The first generation module is used for generating an access interface of a log field in the data structure and assigning values to the log field.
The second generation module is used for generating an interface for carrying out serialization processing on the logs according to the log serialization mode.
The third generation module is used for generating an interface for performing anti-serialization processing on the log according to the log serialization mode.
The fourth generation module is used for generating an interface for storing the log according to the log storage mode.
And the fifth generation module is used for generating an interface for inquiring the log according to the log inquiry mode.
According to an embodiment of the disclosure, the second generating module is specifically configured to convert, if the log serialization manner is a text manner, a log field in the data structure and a field attribute corresponding to the log field into a text format, so as to obtain a text string corresponding to the data structure. If the log serialization mode is a binary mode, converting the log field and the field attribute corresponding to the log field in the data structure into a binary format to obtain a binary string corresponding to the data structure.
According to an embodiment of the disclosure, the third generating module is specifically configured to convert, if the log serialization manner is a text manner, a text string corresponding to the data structure into a log field in the data structure and a field attribute corresponding to the log field. If the log serialization mode is a binary mode, converting the binary string corresponding to the data structure into a log field and a field attribute corresponding to the log field in the data structure.
According to an embodiment of the disclosure, the fourth generating module is specifically configured to generate, if the log storage mode is a database storage mode, a corresponding database insertion statement according to a log field and a field attribute corresponding to the log field in the data structure. If the log storage mode is a file storage mode, writing the value of the log field into the corresponding file according to the log field and the field attribute corresponding to the log field in the data structure.
According to an embodiment of the present disclosure, if the log query mode is a database query mode, the fifth generating module is specifically configured to generate a corresponding database query statement according to the log field and a field attribute corresponding to the log field in the data structure. If the log query mode is a file query mode, reading the value of the log field from the corresponding file according to the log field in the data structure and the field attribute corresponding to the log field.
According to an embodiment of the present disclosure, the second generating unit is specifically configured to parse, by using a template parsing program, an access interface of a log field in a data structure and an interface corresponding to a log processing manner into corresponding codes.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which when executed, may perform the corresponding functions.
For example, any of the first determination unit 601, the first generation unit 602, the second determination unit 603, and the second generation unit 604 may be incorporated in one module/unit/sub-unit or any of them may be split into a plurality of modules/units/sub-units. Alternatively, at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the first determining unit 601, the first generating unit 602, the second determining unit 603, and the second generating unit 604 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable way of integrating or packaging the circuits, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the first determining unit 601, the first generating unit 602, the second determining unit 603, and the second generating unit 604 may be at least partially implemented as computer program modules, which when executed, may perform the respective functions.
Note that, the log processing code generating device portion in the embodiment of the present disclosure corresponds to the log processing code generating method portion in the embodiment of the present disclosure, and the description of the log processing code generating device portion specifically refers to the log processing code generating method portion and is not described herein.
Fig. 7 schematically illustrates a block diagram of a computer system suitable for implementing the above-described methods, according to an embodiment of the present disclosure. The computer system illustrated in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 7, a computer system 700 according to an embodiment of the present disclosure includes a processor 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 703, various programs and data required for the operation of the system 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. The processor 701 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. Note that the program may be stored in one or more memories other than the ROM 702 and the RAM 703. The processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the system 700 may further include an input/output (I/O) interface 705, the input/output (I/O) interface 705 also being connected to the bus 704. The system 700 may also include one or more of the following components connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 702 and/or RAM 703 and/or one or more memories other than ROM 702 and RAM 703 described above.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (7)

1. A method of generating log processing code, comprising:
determining a custom file, wherein the custom file is used for describing a log structure and a log processing mode, and the log structure comprises at least one log type, a plurality of log fields corresponding to each log type and field attributes;
generating a data structure of a log according to the log structure and the log processing mode;
determining a template file according to the data structure of the log, wherein the template file is used for describing an access interface of a log field in the data structure and an interface corresponding to the log processing mode; and
Generating codes for processing logs according to the access interfaces of the log fields and the interfaces corresponding to the log processing modes;
the log processing mode comprises at least one of the following steps: a log serialization mode, a log deserialization mode, a log storage mode or a log query mode;
determining a template file according to the data structure of the log comprises:
generating an access interface of a log field in the data structure, and assigning a value to the log field; and
at least one of the following operations:
generating an interface for carrying out serialization processing on the logs according to the log serialization mode;
generating an interface for performing deserialization processing on the log according to the log deserialization mode;
generating an interface for storing the log according to the log storage mode; and
generating an interface for inquiring logs according to the log inquiring mode;
the generating an interface for serializing the log according to the log serialization mode comprises the following steps:
if the log serialization mode is a text mode, converting the log field and the field attribute corresponding to the log field in the data structure into a text format to obtain a text character string corresponding to the data structure; and/or the number of the groups of groups,
If the log serialization mode is a binary mode, converting a log field and a field attribute corresponding to the log field in the data structure into a binary format to obtain a binary string corresponding to the data structure;
the generating the interface for performing the deserialization processing on the log according to the log deserialization mode comprises the following steps:
if the log deserialization mode is a text mode, converting a text character string corresponding to the data structure into a log field in the data structure and a field attribute corresponding to the log field; and/or the number of the groups of groups,
if the log deserialization mode is a binary mode, converting a binary string corresponding to the data structure into a log field in the data structure and a field attribute corresponding to the log field;
the generating an interface for storing the log according to the log storage mode comprises the following steps:
if the log storage mode is a database storage mode, generating a corresponding database insertion statement according to the log field and the field attribute corresponding to the log field in the data structure; and/or the number of the groups of groups,
if the log storage mode is a file storage mode, writing the value of the log field into a corresponding file according to the log field and the field attribute corresponding to the log field in the data structure;
The generating the interface for inquiring the log according to the log inquiring mode comprises the following steps:
if the log query mode is a database query mode, generating a corresponding database query statement according to the log field and the field attribute corresponding to the log field in the data structure; and/or the number of the groups of groups,
and if the log query mode is a file query mode, reading the value of the log field from the corresponding file according to the log field in the data structure and the field attribute corresponding to the log field.
2. The method of claim 1, further comprising:
acquiring a first updating operation, wherein the first updating operation is used for updating the log type and/or the log field;
modifying the custom file in response to the first update operation;
generating a data structure of the updated log according to the modified custom file;
determining an updated template file according to the data structure of the updated log; and
and generating updated codes for processing logs according to the updated template file.
3. The method of claim 1, further comprising:
acquiring a second updating operation, wherein the second updating operation is used for updating the log processing mode;
Generating a data structure of an updated log in response to the second update operation;
determining an updated template file according to the data structure of the updated log; and
and generating updated codes for processing logs according to the updated template file.
4. The method of claim 1, wherein the generating code for processing a log according to the access interface of the log field in the data structure and the interface corresponding to the log processing manner comprises:
and analyzing the access interface of the log field in the data structure and the interface corresponding to the log processing mode into corresponding codes by using a template analysis program.
5. A log processing code generating apparatus comprising:
the first determining unit is used for determining a custom file, wherein the custom file is used for describing a log structure and a log processing mode, the log structure comprises at least one log type, and each log type comprises a plurality of log fields and field attributes;
the first generation unit is used for generating a data structure of the log according to the log structure and the log processing mode;
the second determining unit is used for determining a template file according to the data structure of the log, wherein the template file is used for describing an access interface of a log field in the data structure and an interface corresponding to the log processing mode; and
The second generating unit is used for generating codes for processing logs according to the access interfaces of the log fields and the interfaces corresponding to the log processing modes;
the log processing mode comprises at least one of the following steps: a log serialization mode, a log deserialization mode, a log storage mode or a log query mode;
determining a template file according to the data structure of the log comprises:
generating an access interface of a log field in the data structure, and assigning a value to the log field; and
at least one of the following operations:
generating an interface for carrying out serialization processing on the logs according to the log serialization mode;
generating an interface for performing deserialization processing on the log according to the log deserialization mode;
generating an interface for storing the log according to the log storage mode; and
generating an interface for inquiring logs according to the log inquiring mode;
the generating an interface for serializing the log according to the log serialization mode comprises the following steps:
if the log serialization mode is a text mode, converting the log field and the field attribute corresponding to the log field in the data structure into a text format to obtain a text character string corresponding to the data structure; and/or the number of the groups of groups,
If the log serialization mode is a binary mode, converting a log field and a field attribute corresponding to the log field in the data structure into a binary format to obtain a binary string corresponding to the data structure;
the generating the interface for performing the deserialization processing on the log according to the log deserialization mode comprises the following steps:
if the log deserialization mode is a text mode, converting a text character string corresponding to the data structure into a log field in the data structure and a field attribute corresponding to the log field; and/or the number of the groups of groups,
if the log deserialization mode is a binary mode, converting a binary string corresponding to the data structure into a log field in the data structure and a field attribute corresponding to the log field;
the generating an interface for storing the log according to the log storage mode comprises the following steps:
if the log storage mode is a database storage mode, generating a corresponding database insertion statement according to the log field and the field attribute corresponding to the log field in the data structure; and/or the number of the groups of groups,
if the log storage mode is a file storage mode, writing the value of the log field into a corresponding file according to the log field and the field attribute corresponding to the log field in the data structure;
The generating the interface for inquiring the log according to the log inquiring mode comprises the following steps:
if the log query mode is a database query mode, generating a corresponding database query statement according to the log field and the field attribute corresponding to the log field in the data structure; and/or the number of the groups of groups,
and if the log query mode is a file query mode, reading the value of the log field from the corresponding file according to the log field in the data structure and the field attribute corresponding to the log field.
6. A computer system, comprising:
one or more processors;
a computer readable storage medium storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-4.
7. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 4.
CN201911425704.2A 2019-12-31 2019-12-31 Log processing code generation method and device, computer system and storage medium Active CN111177089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911425704.2A CN111177089B (en) 2019-12-31 2019-12-31 Log processing code generation method and device, computer system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911425704.2A CN111177089B (en) 2019-12-31 2019-12-31 Log processing code generation method and device, computer system and storage medium

Publications (2)

Publication Number Publication Date
CN111177089A CN111177089A (en) 2020-05-19
CN111177089B true CN111177089B (en) 2023-05-26

Family

ID=70650698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911425704.2A Active CN111177089B (en) 2019-12-31 2019-12-31 Log processing code generation method and device, computer system and storage medium

Country Status (1)

Country Link
CN (1) CN111177089B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199335A (en) * 2020-09-26 2021-01-08 广州鲁邦通物联网科技有限公司 Generation method and generation system of operation log
CN113760655A (en) * 2021-08-27 2021-12-07 中移(杭州)信息技术有限公司 Door lock log analysis method and device and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324996A (en) * 2018-10-12 2019-02-12 平安科技(深圳)有限公司 Journal file processing method, device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150242431A1 (en) * 2014-02-25 2015-08-27 Ca, Inc. Computer system log file analysis based on field type identification
US10140287B2 (en) * 2015-09-09 2018-11-27 International Business Machines Corporation Scalable and accurate mining of control flow from execution logs across distributed systems

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324996A (en) * 2018-10-12 2019-02-12 平安科技(深圳)有限公司 Journal file processing method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
乔晓琳 ; 刘定生 ; 李景山 ; .基于通用遥感数据处理系统的日志子系统的设计与实现.遥感信息.2008,(06),全文. *

Also Published As

Publication number Publication date
CN111177089A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111221521B (en) Method, device, computer system and readable storage medium for generating log code
US9928038B2 (en) Dynamically building locale objects or subsections of locale objects based on historical data
CN108984174B (en) Cross-platform application creation method, device, server and storage medium
US8626786B2 (en) Dynamic language checking
CN110457277B (en) Service processing performance analysis method, device, equipment and storage medium
JP2019053729A (en) Test method and test apparatus of smart contract
CN111177089B (en) Log processing code generation method and device, computer system and storage medium
CN108241720B (en) Data processing method, device and computer readable storage medium
CN115357663A (en) Data synchronization method, system and device based on incremental data synchronization component
CN113419740A (en) Program data stream analysis method and device, electronic device and readable storage medium
US8607201B2 (en) Augmenting visualization of a call stack
CN116483888A (en) Program evaluation method and device, electronic equipment and computer readable storage medium
CN116414855A (en) Information processing method and device, electronic equipment and computer readable storage medium
CN117009397A (en) Data query method, data query device, electronic equipment and storage medium
US20220374398A1 (en) Object Creation from Schema for Event Streaming Platform
CN113392311A (en) Field searching method, field searching device, electronic equipment and storage medium
CN113032256A (en) Automatic test method, device, computer system and readable storage medium
CN113094026A (en) Code processing method and device
CN113778451A (en) File loading method and device, computer system and computer readable storage medium
CN117609042A (en) Interface mapping file testing method, device and equipment based on MyBatis framework
CN116257673A (en) Data query method, device, equipment and storage medium based on elastic search
CN116821158A (en) Structured query statement generation method and device, electronic equipment and storage medium
CN117406971A (en) Database configuration method, device and equipment based on persistent layer framework
CN116820566A (en) Data processing method, device, electronic equipment and storage medium
CN115421738A (en) Version deployment method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: Qianxin Technology Group Co.,Ltd.

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant before: Qianxin Technology Group Co.,Ltd.

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant