CN114676104A - Log generation method and device - Google Patents

Log generation method and device Download PDF

Info

Publication number
CN114676104A
CN114676104A CN202210313305.2A CN202210313305A CN114676104A CN 114676104 A CN114676104 A CN 114676104A CN 202210313305 A CN202210313305 A CN 202210313305A CN 114676104 A CN114676104 A CN 114676104A
Authority
CN
China
Prior art keywords
log
information
initial
sequence
content information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210313305.2A
Other languages
Chinese (zh)
Inventor
李凯
师帅伟
刘知超
赵子秋
郭山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Digital Network 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 Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority to CN202210313305.2A priority Critical patent/CN114676104A/en
Publication of CN114676104A publication Critical patent/CN114676104A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • G06F16/353Clustering; Classification into predefined classes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a log generation method and a log generation device, wherein the log generation method comprises the following steps: receiving initial log information; analyzing the initial log information to obtain log content information and module identification and classification identification associated with the log content information; determining an initial log sequence according to the module identifier, and writing the log content information divided according to the classification identifier into the initial log sequence; under the condition that the initial log sequence meets the preset log conversion condition, target log information corresponding to the initial log sequence is generated through a log processing model, automatic generation and typesetting of updated logs can be achieved through the method, communication is enhanced, workload is saved, and log generation efficiency is improved.

Description

Log generation method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a log generation method. The application also relates to a log generation device, a computing device and a computer readable storage medium.
Background
With the development of internet technology, various application programs are widely applied, the updating iteration speed is faster and faster, and technicians realize the technical progress of the application programs through a generation of method for updating versions and the improvement of the application programs in terms of functions. In this case, the update log introducing the version update contents of the application program is increasingly used. When creating the update log, in the prior art, a log writer needs to communicate with a technician who updates the application program, and after the update content of the application program is completely known, the written update log can be ensured to face a user who uses the application program, so that the user can know the update content of the application program through the update log. However, the creation process of the update log performed in this way has a high quality requirement on the log writer, and the writer needs to not only have a relatively comprehensive product culture knowledge, but also needs to accumulate profound professional knowledge in the related technical level to ensure that the written update log can satisfy the update information conversion from the technical staff to the user.
Disclosure of Invention
In view of this, the embodiments of the present application provide a log generating method to solve the technical defects in the prior art. The embodiment of the application also provides a log generation device, a computing device and a computer readable storage medium.
According to a first aspect of embodiments of the present application, there is provided a log generation method, including:
receiving initial log information;
analyzing the initial log information to obtain log content information and module identification and classification identification associated with the log content information;
determining an initial log sequence according to the module identifier, and writing the log content information divided according to the classification identifier into the initial log sequence;
and under the condition that the initial log sequence meets a preset log conversion condition, generating target log information corresponding to the initial log sequence through a log processing model.
Optionally, the receiving initial log information includes:
receiving a log update request;
responding to a log updating request to scan a log submitting record to obtain log time information;
and reading initial log information based on the log submitting record and the log time information.
Optionally, the determining an initial log sequence according to the module identifier includes:
traversing a log sequence library, and determining log sequence identifiers of all log sequences in the log sequence library;
comparing the log sequence identification of each log sequence with the module identification;
and selecting the log sequence with the same identifier as the initial log sequence according to the comparison result.
Optionally, the writing the log content information divided according to the classification identifier into the initial log sequence includes:
dividing the log content information based on the classification identification to obtain at least one piece of sub-log content information;
determining a writing position corresponding to each sub-log content information in the initial log sequence based on the classification identifier;
and writing the content information of each sub-log into the initial log sequence according to the writing position.
Optionally, the generating, by the log processing model, target log information corresponding to the initial log sequence includes:
reading to-be-processed log content information and to-be-processed classification marks corresponding to the to-be-processed log content information in the initial log sequence;
constructing an information vector corresponding to the content information of the log to be processed and an identification vector corresponding to the classification identification to be processed;
and fusing the information vector and the identification vector, and inputting the fused log vector to be processed into a log processing model for processing to obtain target log information.
Optionally, the reading of the content information of the log to be processed and the classification identifier to be processed corresponding to the content information of the log to be processed in the initial log sequence includes:
selecting all log content information in the initial log sequence as to-be-processed log content information; selecting all the classification identifiers in the initial log sequence as to-be-processed classification identifiers;
alternatively, the first and second electrodes may be,
determining log content information which does not contain the selection identification in the initial log sequence as to-be-processed log content information; and selecting the classification identifier corresponding to the log content information which does not contain the selection identifier as the classification identifier to be processed.
Optionally, the initial log information is input and generated by a service operator through a log collection interface in the client, and is uploaded by the client; the log collection interface comprises a module identifier selection sub-interface and a classification identifier selection sub-interface; and acquiring the initial log information input by a service operator through the module identifier selection sub-interface and the classification identifier selection sub-interface.
Optionally, the training of the log processing model includes:
acquiring initial sample log information, and a sample classification identifier and target sample log information corresponding to the initial sample log information;
inputting the initial sample log information and the sample classification identifier into an initial log processing model for processing to obtain predicted log information corresponding to the initial sample log information;
and adjusting parameters of the initial log processing model according to the target sample log information and the prediction log information until a log processing model meeting training stopping conditions is obtained.
Optionally, after the step of generating the target log information corresponding to the initial log sequence through the log processing model is executed, the method further includes:
sending the target log information to an auditing node, and receiving an updating request fed back by the auditing node aiming at the target log information;
updating the target log information according to the updating request to obtain the log information to be issued;
and issuing the log information to be issued according to a preset issuing strategy.
Optionally, after obtaining the log information to be published, the method further includes:
and adjusting parameters of the log processing model according to the log information to be issued and the target log information, and updating the log processing model.
According to a second aspect of embodiments of the present application, there is provided a log generation apparatus, including:
a receiving module configured to receive initial log information;
the analysis module is configured to analyze the initial log information to obtain log content information and module identification and classification identification associated with the log content information;
the writing module is configured to determine an initial log sequence according to the module identifier and write the log content information divided according to the classification identifier into the initial log sequence;
the generating module is configured to generate target log information corresponding to the initial log sequence through a log processing model under the condition that the initial log sequence meets a preset log conversion condition.
According to a third aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is used for storing computer-executable instructions, and the processor realizes the steps of the log generation method when executing the computer-executable instructions.
According to a fourth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the log generation method.
According to a fifth aspect of embodiments of the present application, there is provided a chip storing a computer program which, when executed by the chip, implements the steps of the log generation method.
According to the log generation method, the initial log information is received, then the log content information related to the initial log information, the module identification and the classification identification are obtained, the initial log sequence related to the log content information is determined according to the module identification, the log content information is divided and written into the related position of the initial log sequence according to the classification identification, and finally the target log information corresponding to the initial log sequence is generated through the log processing model under the condition that the initial log sequence meets the preset log conversion condition, so that automatic generation and typesetting of updated logs are achieved, communication is enhanced, workload is saved, and efficiency of log generation is improved.
Drawings
Fig. 1 is a flowchart of a log generation method according to an embodiment of the present application;
fig. 2 is a schematic view of an operation interface of a log generation method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a log generation method applied to navigation software according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a log generating apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
SVN: the system is an open source code version control system, and is used for efficiently managing by adopting a branch management system, namely, the system is used for jointly developing the same project by a plurality of persons to realize shared resources and finally realize centralized management.
In the present application, a log generation method is provided. The present application relates to a log generating apparatus, a computing device, and a computer readable storage medium, which are described in detail in the following embodiments one by one.
In practical application, because the version updating speed of the application program is increased continuously, the editing work of the corresponding update log after each version updating becomes more and more common, but because the crowd facing the update log is a user, the knowledge of the user on the version updating content of the application program is realized, and the user can know the specific updating content of the version updating of the application program, the language used by the update log should be based on the cognitive level of the user, and in addition, because part of the application program has the condition of a special application scene, such as a game program, and the like, the update log should be interpreted according to the game content in the writing process, so that the understanding of the user can be facilitated, and the method can bring the emotion of the user better.
However, in the above-mentioned update journal, the writer must have perfect knowledge of the content of the application program, and there is a strong understanding of the technology used for updating the application program, so that the writer can associate the technical point to the user point to write the update journal meeting the requirements. But this certainly increases the quality requirements of the practitioner and this completely manual way, in the writing of the update log, does not guarantee efficiency.
Therefore, the log generation method is provided in the application, and by means of automatic log generation, requirements on quality of workers are met, the establishment efficiency of the log update establishment process is achieved, and labor cost is saved.
Fig. 1 shows a flowchart of a log generation method according to an embodiment of the present application, which specifically includes the following steps:
step S102: initial log information is received.
The initial log information may be understood as an update log uploaded by a technician who updates the application after the application is updated. The initial log information includes a module to which the update content belongs, such as different modules of characters, equipment, pets and the like updated in the game program, an update type of the update content, such as different types of art, programs, plans and the like updated in the application program, and descriptions of the update content, the update effect and the like by a technician.
Based on the method, the server receives initial log information which is uploaded by technicians and contains information such as modules, types, contents, effects and the like of updated contents.
Further, in order to ensure that the initial log information received by the server includes the required specific content, it is required to ensure that the initial log content uploaded by the technician has a certain format limitation, and in this embodiment, the specific implementation manner is as follows:
the initial log information is input and generated by a service operator through a log collection interface in the client and is uploaded by the client; the log collection interface comprises a module identifier selection sub-interface and a classification identifier selection sub-interface; and acquiring the initial log information input by a service operator through the module identifier selection sub-interface and the classification identifier selection sub-interface.
The service operator may be understood as a specific technician involved in updating the application program, and is responsible for a specific implementation process of designing and creating the program, the screen, the sound, and the like of the application program. The log collection interface may be understood as an interface for uploading initial log information by a service operator, and it should be noted that the log collection interface may be an input interface created separately or an input interface attached to other mature platforms, and a specific selection condition of the log collection interface is determined by an actual application scenario, which is not limited in this embodiment. The module identifier selection sub-interface may be understood as being used for a service operator to select a module to which the application update content belongs, wherein a preset module tag may be selected, and the service operator may create a custom module tag. The classification identification selection sub-interface is similar to the module identification selection sub-interface and is used for selecting the type of the updated content of the application program by a service operator, wherein the type of the updated content of the application program also has two preset and self-defined forms. It should be noted that the module identifier selection sub-interface and the classification identifier selection sub-interface may be separately established or may be integrated together, and a specific implementation form thereof is determined by an actual use scenario, which is not limited in this embodiment. In addition, after the module identifier and the classification identifier are respectively selected through the module identifier selection sub-interface and the classification identifier selection sub-interface, an input template can be created based on the selected module identifier and the selected classification identifier, a service operator can input the update content and the update effect of the application program based on the template, the implementation of automatic generation of the template is determined by the actual use situation, and the embodiment is not limited.
For example, under the condition of game updating, a game research and development staff uploads a log of updated contents based on an Ones task platform to authorize and execute, a new task of the task platform can be submitted to the SVN, when SVN data is updated, the research and development staff fills in the changed data during updating, when the research and development staff inputs the log collection interface in the Ones task platform, firstly, a module identifier (certain equipment) for selecting updated contents of a game based on a module identifier selection sub-interface is selected, then, a classification identifier for updating the game contents is selected as program logic on the classification identifier selection sub-interface, and then, based on the selected module identifier and the program logic, an updated content input template is generated, wherein an XX function is added, and XX is realized. "research and development personnel input the template to obtain" newly added A equipment function, and realize using A equipment under the first battle mode of machine. And finally, uploading the updated content as initial log information G through the client.
In conclusion, by the method, the service operator can standardize the uploading of the initial log information in the updating process of the application program, and the generation difficulty of the target log is simplified. It should be noted that, besides the log collection interface, a defect correction interface may be further provided for distinguishing the version update from the bug patch of the application program, and the specific page setting condition is determined by the actual use condition, which is not limited in this embodiment.
Further, for the acquisition of the initial log information, the server needs to acquire the initial log information in real time after the log generation method starts to be executed, which may cause resource waste of the computing device, and in this embodiment, the specific implementation manner is as follows:
receiving a log update request; responding to a log updating request to scan a log submitting record to obtain log time information; and reading initial log information based on the log submission record and the log time information.
The log updating request can be understood as an instruction for indicating initial log information to collect when log generation is needed; the log submitting record may be understood as recording all uploaded initial log information and relevant information uploaded by the initial log information, and it should be noted that the relevant information includes contents such as uploading time of the initial log information and size of an uploaded file, and specific contents included in the contents are determined according to an actual situation, which is not limited in this embodiment. The log time information may be understood as information including an upload time of the initial log information.
Based on the method, a log updating request is received, the log submitting record is scanned according to the log updating request, uploading time of each initial log information contained in the log submitting record, namely log time information, is obtained, and then the initial log information needing to be read is determined according to the uploading time of each initial log information and is read according to the requirement.
In the above example, after receiving the initial update request, the log submission record is scanned, the upload time of each piece of initial log information is determined, the initial log information uploaded after the last game update is determined as the initial log information G according to the upload time, and then the initial log information G is read in the log submission record.
In conclusion, by the method, the initial log information is read under the condition that the log generation requirement exists, and the waste of computing resources in the real-time acquisition process is reduced.
Step S104: and analyzing the initial log information to obtain log content information and module identification and classification identification associated with the log content information.
Specifically, after the initial log information is obtained, the initial log information needs to be analyzed to determine a module, a classification, and specific update contents of the initial log information for updating the application program, so as to perform classification processing on the initial log information, thereby simplifying the processing difficulty.
The log content information can be understood as containing the specific content updated by the application program and the effect generated after the update; module identification may be understood to include information about the particular module in which the application is updated, such as updates to various modules in the game program, such as characters, equipment, pets, etc., information about those modules; a class identifier may be understood to comprise information about the specific update type of the update application, e.g. the update type of the application is a different type of art, procedure, plan, etc., which information is of a type that is different from the update type of the application.
Based on the above, after the initial log information is received, the initial log information is analyzed, and a module identifier indicating the specific update of the application program corresponding to the initial log information and a classification identifier indicating the specific update type of the application program corresponding to the initial log information are determined.
Step S106: and determining an initial log sequence according to the module identifier, and writing the log content information divided according to the classification identifier into the initial log sequence.
Specifically, after the update module and the update type of the application program are determined according to the initial log information, the log content information in the initial log information needs to be classified, so that the processing complexity is reduced.
The initial log sequence may be understood as a sequence for storing log content information in initial log information for updating the same module. It should be noted that each element in the initial log sequence is log content information, the sequence position of the element is clear, and the element may correspond to different application program update types, and the specific arrangement order thereof is determined by the actual usage context, which is not limited in this embodiment.
Based on the above, the module for updating the application program according to the initial log content indicated by the module identifier selects the corresponding initial log sequence, and writes the log content information into the corresponding position in the initial log sequence according to the indication of the classification identifier. It should be noted that the number of module identifiers and category identifiers included in one initial log information is not fixed, for example, two module identifiers a1 and a2 and three category identifiers b1 and b2 are provided in one initial log information, and it is assumed that the presentation form is a1{ b 1: 111; b 2: 222}, a2{ b 2: 333, wherein in this case it can be divided into three parts "b 1: 111 "," b 2: 222 "," b 2: 333 ", then" b 1: 111 "," b 2: 222 "into the initial log sequence corresponding to a1," b 2: 333 "into the initial log sequence corresponding to a 2. Among these, there are cases where the same module id is provided, but different class ids are provided, such as "b 1: 111 "and" b 2: 222 ", there are also modules having the same class identification, but different module identifications, such as" b 2: 222 "and" b 2: 333 ", none of the above forms affect the specific partitioning and allocation writes.
Further, in most cases, the application program includes a plurality of modules, that is, there are a plurality of corresponding initial log sequences, and it needs to determine which of the initial log sequences corresponding to the initial log information is specific according to the module identifier, in this embodiment, the specific implementation manner is as follows:
traversing a log sequence library, and determining log sequence identifiers of all log sequences in the log sequence library; comparing the log sequence identification of each log sequence with the module identification; and selecting the log sequence with the same identifier as the initial log sequence according to the comparison result.
The log sequence can be understood as a preset sequence corresponding to all the module identifications one to one; the log sequence library can be understood as a database storing all log sequences; the log sequence identifier may be understood as "identity information" of the log sequence, so as to distinguish the log sequences, and corresponds to each module identifier one to one.
Based on the log sequence identification, all log sequences in the log sequence library are inquired, the log sequence identification corresponding to each log sequence is determined, the log sequence identification is compared with the module identification of the initial log information, the log sequence corresponding to the initial log information is determined, and the log sequence is determined as the initial log sequence.
For example, the log sequence library is traversed, log sequence identifiers of all log sequences in the log sequence library are determined, the obtained log sequence identifiers are compared with module identifiers [ a certain device ] of initial log information G, and a log sequence X is determined to be an initial log sequence and recorded as the initial log sequence X.
In summary, the above method realizes that the initial log sequence corresponding to the module identifier and the log sequence identifier is determined, so that the determination process of the initial log sequence is accurate.
Further, since the position of each element in the initial log sequence corresponds to a different meaning, and the positions of different elements cannot be exchanged at will, in the process of writing the log content information of the initial log information into the initial log sequence, the log content information cannot be written at will, and needs to be written in a targeted manner, in this embodiment, the specific implementation manner is as follows:
dividing the log content information based on the classification identification to obtain at least one piece of sub-log content information; determining a writing position corresponding to each sub-log content information in the initial log sequence based on the classification identifier; and writing the content information of each sub-log into the initial log sequence according to the writing position.
The sub-log content information can be understood as information obtained by combining the log content information with the classification identifier, wherein the information comprises specific content updated by the application program and related information of a specific update type; the writing position may be understood as a position limitation for writing the sub-log content information into the initial log sequence, for example, the sub-log content information writing position specifying the update type as "program logic" in the initial log sequence precedes the sub-log content information of "art resource". It should be noted that the writing position may include determining a specific writing byte, and may also include different defining manners such as a writing sequence, and a specific implementation manner of the writing position is determined by an actual usage scenario, which is not limited in this embodiment. Further, the determination process of the writing position of the sub-log content information may be determined based on the logging time of the sub-log content information, such as two pieces of initial log information x1, x2, x1 received prior to x2, at which time the sub-log content information divided by x1 may be preferentially written and the writing position is prior to the sub-log content information divided by x 2; or the writing position is determined according to the byte length of the sub-log content information, or the writing position is sequentially written from high to low according to the byte length in the sub-log content information divided by two pieces of initial log information x1, x2, x1 and x 2; or determining the writing position according to the preset priorities corresponding to different classification identifiers, for example, determining the writing order of the sub-log content information according to the corresponding classification identifiers in the sub-log content information partitioned by the two initial log information x1 and x2, so that the writing order of the writing position can be known.
Based on the method, the sub-log content information is determined according to the classification identification and the log content information, the writing position corresponding to each sub-log content information is determined according to the indication of the classification identification and the stipulation of the initial log sequence, and the sub-log content information is written into the corresponding position of the initial log sequence according to the obtained writing position.
Along with the use of the above example, the function of the equipment A is added to the log content information according to the classification identifier 'program logic' of the initial log information G, and the equipment A is used in the airplane armour combat mode. Program logic for classifying to obtain sub-log content information: the function of the equipment A is newly added, and the equipment A is used in the airplane armor battle mode. "then, it is determined based on the classification identifier" program logic "and the initial log sequence, where a writing position of the sub-log content information corresponding to the classification identifier" program logic "is the foremost end in the initial log sequence, and it should be noted that, if there is sub-log content information corresponding to the same classification identifier in the initial log sequence, new sub-log content information may be written before the sub-log content information of the same classification identifier, or after the sub-log content information of the same classification identifier, as long as it is ensured that the sub-log content information of the same classification identifier is adjacent to the sub-log content information of the same classification identifier, but not cross-written with the sub-log content information of different classification identifiers, and a specific writing manner thereof is determined by an actual usage scenario, which is not limited in this embodiment. In addition, it should be noted that, the initial log information may also include more than one category identifier, for example, the initial log information includes "program logic" and "art resources", and the corresponding log content information is "a new function of equipment a is added, so that the equipment a is used in the airplane armour combat mode; and the device A is newly added with the device B, so that the function of changing the device A in the using process is realized. In this case, after the module identifier is selected, the service operation task continuously selects the classification identifiers twice, and can generate a corresponding template; in this case, two sub-log content information "program logic" may be generated based on the two classification identifications and the log content information: the function of the equipment A is newly added, and the equipment A is used in the airplane armor battle mode. "," art resources: and the device A style B is newly added, so that the function of changing styles in the use process of the device A is realized. "how many classification labels are specifically included in the log generation method is limited by the actual implementation scenario, and this embodiment is not limited.
In summary, by this method, the relevant content in the log content information is stored to the corresponding position of the initial log sequence, and this standardization simplifies the subsequent processing of the information.
Step S108: and under the condition that the initial log sequence meets a preset log conversion condition, generating target log information corresponding to the initial log sequence through a log processing model.
Specifically, after the initial log sequence is determined and the relevant portion of the log content information is written to the initial log sequence, the target log information can be created based thereon.
The log conversion condition may be understood as a preset precondition that can perform a target log information generation process, and it should be noted that the log conversion condition may be preset time, or the number of sub-log content information written in an initial log sequence, and the specific setting manner is determined by an actual use scenario, which is not limited in this embodiment. The log processing model can be understood as a neural network model meeting a preset conversion effect obtained through training, and relates to a natural language processing technology, another spoken language method is obtained by converting one technical language, so that the conversion from initial log information facing research and development personnel to target log information facing a user is realized, in addition, as the target log information faces the user, in order to enable the user to have better immersion, the target log information can be inevitably applied to languages in the application environment of related software, and in order to simplify the training process, the application environment can be also taken as related parameters of the neural network training process to be captured and added into the training; in this case, the converted target log information is different in log processing models obtained in different application environments even if the same initial log information is processed, for example, the initial log information is "new appearance is added to the role", the target log information obtained in one environment is "load form can be used when the airplane combat is carried out", and the target log information obtained in another environment is "Halloween activity is carried out, Halloween suit is added"; the target log information may be understood as converted log information, which is log information facing the user.
Based on the method, under the condition that a preset log conversion condition is met, the target log can be generated, the information in the initial log sequence is processed based on the obtained initial log sequence, and finally, the target log information facing the user is obtained through the processing of the log processing model.
Further, the input of the neural network model is implemented in a vector form, and the process of generating the target log information based on the log processing model is implemented as follows:
reading to-be-processed log content information and to-be-processed classification marks corresponding to the to-be-processed log content information in the initial log sequence; constructing an information vector corresponding to the content information of the log to be processed and an identification vector corresponding to the classification identification to be processed; and fusing the information vector and the identification vector, and inputting the fused log vector to be processed into a log processing model for processing to obtain target log information.
The log content information to be processed can be understood as a set of sub-log content information with the same classification identifier; the classification identifier to be processed may be understood as a classification identifier corresponding to the content information of the log to be processed.
Based on the method, determining the sub-log content information of the same classification mark needing to be converted in the initial log sequence as the log content information to be processed, and determining the classification mark as the classification mark to be processed; constructing a corresponding information vector based on the obtained log content information to be processed, and constructing a corresponding identification vector based on the classification identification to be processed; and then fusing the obtained information vector and the identification vector to obtain a log vector to be processed, inputting the log vector to be processed into a log processing model for processing, and obtaining target log information after the processing is finished.
Following the above example, in the initial log sequence, the classification identifier "program logic" is determined as the classification identifier to be processed, and the "program logic" corresponding to the classification identifier: the function of the equipment A is newly added, and the equipment A is used in the airplane armor battle mode. And in the machine A mode, the J machine A can be equipped with a light sword in the preparation process. ", here, the light sword corresponds to the a gear.
In conclusion, through the method, professional log contents of related technicians can be automatically converted into target log contents facing the user, the reading burden of the user is relieved, and the immersion feeling of the user is deepened.
Further, the initial log sequence may also include previously stored related information, in this case, in order to implement generation of the target log information, in this embodiment, a specific implementation manner is as follows:
selecting all log content information in the initial log sequence as to-be-processed log content information; selecting all the classification identifiers in the initial log sequence as to-be-processed classification identifiers; or determining the log content information which does not contain the selection identifier in the initial log sequence as the log content information to be processed; and selecting the classification identifier corresponding to the log content information which does not contain the selection identifier as the classification identifier to be processed.
The selection identifier may be understood as an identifier for marking the selected log content information.
Based on this, under the condition that the initial log sequence may also include the previously stored related information, there are two methods for determining the content information and the classification identifier of the log to be processed, wherein one method is to select all the log content information in the initial log sequence as the content information of the log to be processed, and determine the corresponding classification identifier as the classification identifier of the log to be processed; in another way, only newly added log content information is selected as the to-be-processed log content information, the corresponding classification identifier is determined as the to-be-processed classification identifier, and it should be noted that after the second method is implemented, the selected log content information and the selected classification identifier need to be added, so as to ensure that the log content information and the classification identifier are distinguished in the subsequent processes of reappearing the to-be-processed log content information and the to-be-processed classification identifier.
Along the above example, in the initial log sequence, except the newly written log content information with the classification mark of program logic, the function of the equipment A is added, and the equipment A is used in the airplane armour fighting mode. The function of B equipment is added to 'also include the existing log content information', and the B equipment is used in the airplane armor battle mode. The corresponding classification mark is a program logic, the classification mark and the program logic can be simultaneously selected as the content information of the log to be processed, and the program logic is the classification mark to be processed; and the other mode is to determine the selection identifiers of the two, and the function of the equipment A is added without the selection identifiers, so that the equipment A is used in the airplane armor battle mode. And taking the log content information as the log content information to be processed, taking the corresponding program logic as the classification identifier to be processed, and adding a selection identifier to the log content information and the classification identifier after selection.
In summary, the content information of the log to be processed and the classification identifier to be processed are determined through the two ways, and the complete description of the target log content on the update can be realized through all the selections, while the other way is incremental addition, so that the resource utilization of the system is reduced, and the processing efficiency is accelerated.
Further, in this embodiment, a training process of the log processing model is specifically implemented as follows:
acquiring initial sample log information, and a sample classification identifier and target sample log information corresponding to the initial sample log information; inputting the initial sample log information and the sample classification identification to an initial log processing model for processing to obtain predicted log information corresponding to the initial sample log information; and adjusting parameters of the initial log processing model according to the target sample log information and the prediction log information until a log processing model meeting training stopping conditions is obtained.
Wherein, the initial sample log information can be understood as the initial log information as the training sample; similarly, the sample classification identifier may be understood as a classification identifier corresponding to the training sample, and the target sample log information may be understood as converted target sample information corresponding to the initial sample log information; the initial log processing model can be understood as a pre-trained log processing model; the predicted log information may be understood as target log information obtained through processing by an initial log processing model based on the initial sample log information and the sample classification identifier.
Based on the method, the initial sample information and the sample classification identification are used as the input of the initial log processing model, the predicted log information is obtained after the initial log processing model is processed, and the log processing model meeting the processing requirement can be obtained by comparing the difference between the predicted log information and the target sample log information and continuously adjusting parameters of the initial log processing model.
In summary, the log processing model obtained by the log processing model training method can process the initial log information to obtain the log processing information meeting the requirement.
Further, after the application is updated for multiple times, the content of the application itself has been changed greatly, or when the application is updated with a function having a relatively low application frequency, the target log information may not meet the expectation, and at this time, the target log information needs to be further modified, in this embodiment, the specific implementation manner is as follows:
sending the target log information to an auditing node, and receiving an updating request fed back by the auditing node aiming at the target log information; updating the target log information according to the updating request to obtain the log information to be issued; and issuing the log information to be issued according to a preset issuing strategy.
The auditing node can be understood as related auditors, auditing departments and the like before sending the target log information; the update request can be understood as the content of the corresponding modification of the target log information by the auditing node; the log information to be published can be understood as modified target log information.
Based on the method, the target log information is sent to the auditing node, the target log information is audited at the auditing node, then an updating request containing the auditing suggestion of the auditing node is sent, the target log information is updated according to the updating request to obtain the log information to be issued, and the log information to be issued is issued according to a preset issuing strategy for the user to watch.
Following the above example, the target log information "machine in first mode, J machine in first can be equipped with light sword in the preparation process. In the machine A mode, for a balance mechanism, a J machine A can be equipped with a light sword in the preparation process. And then issuing the log information to be issued according to a preset issuing strategy.
In conclusion, by means of the examination node, the issued log information is ensured to be more expected, and the situation that the log processing model does not meet the expected log information because the log processing model does not match the application program updated for many times is reduced.
Further, after the application program is updated for multiple times, when the log processing model does not match the current application program, the log processing model needs to be updated, and in this embodiment, the specific implementation manner is as follows:
and adjusting parameters of the log processing model according to the log information to be issued and the target log information, and updating the log processing model.
The log processing model is updated by modifying the auditing node to obtain the to-be-issued log information and the target log information obtained by the log processing model to adjust parameters of the log processing model.
In conclusion, the log processing model is updated in the above manner, so that the log processing model can be matched with the application program after being updated for multiple times, and the application width of the log processing model is enhanced.
In addition, fig. 2 is a schematic view of an operation interface of a log generation method according to an embodiment of the present application, where it can be seen that the operation interface has limitations in a receiving process of selected initial log information, including but not limited to start and stop time and a sender. Then, a preset log conversion condition setting window is further included, wherein the preset log conversion condition setting window includes but is not limited to manual triggering and timing triggering; and finally, setting related contents including application environment, log generation, variable setting, uploading and the like.
According to the log generation method, the initial log information is received, then the log content information related to the initial log information, the module identification and the classification identification are obtained, the initial log sequence related to the log content information is determined according to the module identification, the log content information is divided and written into the related position of the initial log sequence according to the classification identification, and finally the target log information corresponding to the initial log sequence is generated through the log processing model under the condition that the initial log sequence meets the preset log conversion condition, so that automatic generation and typesetting of updated logs are achieved, communication is enhanced, workload is saved, and efficiency of log generation is improved.
In the following, with reference to fig. 3, the log updating method provided by the present application is taken as an example of application of the log updating method to navigation software, and the log updating method is further described. Fig. 3 shows a processing flow chart of a log updating method applied to navigation software according to an embodiment of the present application, which specifically includes the following steps:
step S302: a log update request is received.
Specifically, after version update is performed on a certain navigation software, the enterprise of the navigation software needs to generate a corresponding version update log, based on the requirement, related business personnel send a log update request, and a server receives the log update request.
Step S304: and responding to the log updating request to scan the log submitting record to obtain the log time information.
Specifically, according to the log update request, the log update record of the proprietary research and development platform of the enterprise is scanned to obtain the log information a submitted after the last version update.
Step S306: and reading initial log information based on the log submission record and the log time information.
Specifically, the log information a is determined as the initial log information S. It should be noted that the log information a is input by a developer of the navigation software in the log collection interface of the enterprise proprietary development platform.
Step S308: and analyzing the initial log information to obtain log content information and module identification and classification identification associated with the log content information.
Specifically, the initial log information S is analyzed to obtain log content information, which increases the search function and realizes searching for a mall around the target point of the map, and the module identifier [ search ] and the classification identifier "program".
Step S310: and traversing the log sequence library, and determining the log sequence identification of each log sequence in the log sequence library.
Step S312: and comparing the log sequence identification of each log sequence with the module identification.
Step S314: and selecting the log sequence with the same identifier as the initial log sequence according to the comparison result.
Specifically, a log sequence with a log sequence identifier of [ search ] is selected as the initial log sequence.
Step S316: and dividing the log content information based on the classification identification to obtain at least one piece of sub-log content information.
Specifically, the log content information is divided based on the classification identifier "program" to obtain a sub-log content information "program: the searching function is added, and the searching of the market around the target point of the map is realized.
Step S318: and determining the writing position corresponding to each sub-log content information in the initial log sequence based on the classification identification.
Specifically, the sub-log content information "procedure is determined based on the classification flag" procedure ": the searching function is added, and the writing position of the mall around the target point of the searching map in the initial log sequence is the tail.
Step S320: and writing the content information of each sub-log into the initial log sequence according to the writing position.
Step S322: and determining the log content information which does not contain the selection identification in the initial log sequence as the log content information to be processed.
Specifically, the method determines that the content information of the selected identification log is not contained, 'the search function is added, and the purpose of searching a market around the target point of the map' as the content information of the log to be processed is achieved.
Step S324: and selecting the classification identifier corresponding to the log content information which does not contain the selection identifier as the classification identifier to be processed.
Specifically, the classification identifier "program" is determined as the classification identifier to be processed.
Step S326: and under the condition that the initial log sequence meets a preset log conversion condition, generating target log information corresponding to the initial log sequence through a log processing model.
Specifically, the preset log conversion condition is that 12 hours of log update requests are received, and after 12 hours, target log information is generated through the log processing model, namely, the searching function is increased, and a market near the destination can be searched.
Step S328: and sending the target log information to an auditing node, and receiving an updating request fed back by the auditing node aiming at the target log information.
Specifically, a search function is added to the target log information, a market near a destination can be searched, the target log information is sent to an auditor, and after the auditor audits, the auditor sends an update request for the target log information feedback.
Step S330: and updating the target log information according to the updating request to obtain the log information to be issued.
Specifically, the target log information is updated according to the update request, and the log information to be issued, namely the market near the destination is searched by one key, is obtained.
Step S332: and issuing the log information to be issued according to a preset issuing strategy.
Step S334: and adjusting parameters of the log processing model according to the log information to be issued and the target log information, and updating the log processing model.
According to the log generation method, the log content information, the module identification and the classification identification which are related to the initial log information are obtained after the initial log information is received, the initial log sequence which is related to the log content information is determined according to the module identification, the log content information is divided and written into the related position of the initial log sequence according to the classification identification, and finally under the condition that the initial log sequence meets the preset log conversion condition, the target log information which corresponds to the initial log sequence is generated through the log processing model, so that automatic generation and typesetting of updated logs are achieved, communication is enhanced, workload is saved, and the efficiency of log generation is improved.
Corresponding to the above method embodiment, the present application further provides an embodiment of a log updating apparatus, and fig. 4 shows a schematic structural diagram of the log updating apparatus provided in an embodiment of the present application. As shown in fig. 4, the apparatus includes:
a receiving module 402 configured to receive initial log information;
an analyzing module 404 configured to analyze the initial log information to obtain log content information and a module identifier and a classification identifier associated with the log content information;
a writing module 406, configured to determine an initial log sequence according to the module identifier, and write the log content information divided according to the classification identifier into the initial log sequence;
the generating module 408 is configured to generate target log information corresponding to the initial log sequence through a log processing model when the initial log sequence meets a preset log conversion condition.
In an optional embodiment, the receiving module 402 may be further configured to:
receiving a log update request; responding to a log updating request to scan a log submitting record to obtain log time information; and reading initial log information based on the log submission record and the log time information.
In an optional embodiment, the writing module 406 may be further configured to:
traversing a log sequence library, and determining log sequence identifiers of all log sequences in the log sequence library; comparing the log sequence identification of each log sequence with the module identification; and selecting the log sequence with the same identifier as the initial log sequence according to the comparison result.
In an optional embodiment, the writing module 406 may be further configured to:
dividing the log content information based on the classification identification to obtain at least one piece of sub-log content information; determining a writing position corresponding to each sub-log content information in the initial log sequence based on the classification identifier; and writing the content information of each sub-log into the initial log sequence according to the writing position.
In an optional embodiment, the generating module 408 may be further configured to:
reading to-be-processed log content information and to-be-processed classification marks corresponding to the to-be-processed log content information in the initial log sequence; constructing an information vector corresponding to the content information of the log to be processed and an identification vector corresponding to the classification identification to be processed; and fusing the information vector and the identification vector, and inputting the fused log vector to be processed into a log processing model for processing to obtain target log information.
In an optional embodiment, the generating module 408 may be further configured to:
selecting all log content information in the initial log sequence as to-be-processed log content information; selecting all the classification identifiers in the initial log sequence as to-be-processed classification identifiers; or determining the log content information which does not contain the selection identifier in the initial log sequence as the log content information to be processed; and selecting the classification identifier corresponding to the log content information which does not contain the selection identifier as the classification identifier to be processed.
In an optional embodiment, the initial log information is input and generated by a service operator through a log collection interface in the client, and is uploaded by the client; the log collection interface comprises a module identifier selection sub-interface and a classification identifier selection sub-interface; and acquiring the initial log information input by a service operator through the module identifier selection sub-interface and the classification identifier selection sub-interface.
In an optional embodiment, the generating module 408 may be further configured to:
acquiring initial sample log information, and a sample classification identifier and target sample log information corresponding to the initial sample log information; inputting the initial sample log information and the sample classification identification to an initial log processing model for processing to obtain predicted log information corresponding to the initial sample log information; and adjusting parameters of the initial log processing model according to the target sample log information and the prediction log information until a log processing model meeting training stopping conditions is obtained.
In an optional embodiment, the log generating apparatus further includes:
the auditing module is configured to send the target log information to an auditing node and receive an updating request fed back by the auditing node aiming at the target log information; updating the target log information according to the updating request to obtain the log information to be issued; and issuing the log information to be issued according to a preset issuing strategy.
In an optional embodiment, the log generating apparatus further includes:
and the parameter adjusting device is configured to adjust parameters of the log processing model according to the log information to be issued and the target log information, and update the log processing model.
According to the log generation device, the initial log information is received, then the log content information related to the initial log information, the module identification and the classification identification are obtained, the initial log sequence related to the log content information is determined according to the module identification, the log content information is divided and written into the related position of the initial log sequence according to the classification identification, and finally under the condition that the initial log sequence meets the preset log conversion condition, the target log information corresponding to the initial log sequence is generated through the log processing model, so that automatic generation and typesetting of updated logs are achieved, communication is enhanced, workload is saved, and efficiency of log generation is improved.
The foregoing is a schematic scheme of a log updating apparatus of this embodiment. It should be noted that the technical solution of the log updating apparatus and the technical solution of the log updating method belong to the same concept, and for details that are not described in detail in the technical solution of the log updating apparatus, reference may be made to the description of the technical solution of the log updating method. Further, the components in the device embodiment should be understood as functional blocks that must be created to implement the steps of the program flow or the steps of the method, and each functional block is not actually divided or separately defined. The device claims defined by such a set of functional modules are to be understood as a functional module framework for implementing the solution mainly by means of a computer program as described in the specification, and not as a physical device for implementing the solution mainly by means of hardware.
Fig. 5 illustrates a block diagram of a computing device 500 provided according to an embodiment of the present application. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. Processor 520 is coupled to memory 510 via bus 530, and database 550 is used to store data.
Computing device 500 also includes access device 540, access device 540 enabling computing device 500 to communicate via one or more networks 560. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 540 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 500 and other components not shown in FIG. 5 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 5 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 500 may also be a mobile or stationary server.
Wherein processor 520 is configured to execute the following computer-executable instructions:
receiving initial log information;
analyzing the initial log information to obtain log content information and module identification and classification identification associated with the log content information;
determining an initial log sequence according to the module identifier, and writing the log content information divided according to the classification identifier into the initial log sequence;
and under the condition that the initial log sequence meets a preset log conversion condition, generating target log information corresponding to the initial log sequence through a log processing model.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the log updating method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the log updating method.
An embodiment of the present application further provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to:
receiving initial log information;
analyzing the initial log information to obtain log content information and module identification and classification identification associated with the log content information;
determining an initial log sequence according to the module identifier, and writing the log content information divided according to the classification identifier into the initial log sequence;
and under the condition that the initial log sequence meets a preset log conversion condition, generating target log information corresponding to the initial log sequence through a log processing model.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned log updating method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned log updating method.
An embodiment of the present application further provides a chip, in which a computer program is stored, and the computer program implements the steps of the log updating method when executed by the chip.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (13)

1. A log generation method, comprising:
receiving initial log information;
analyzing the initial log information to obtain log content information and module identification and classification identification associated with the log content information;
determining an initial log sequence according to the module identifier, and writing the log content information divided according to the classification identifier into the initial log sequence;
and under the condition that the initial log sequence meets a preset log conversion condition, generating target log information corresponding to the initial log sequence through a log processing model.
2. The method of claim 1, wherein receiving initial log information comprises:
receiving a log update request;
responding to a log updating request to scan a log submitting record to obtain log time information;
and reading initial log information based on the log submission record and the log time information.
3. The method of claim 1, wherein determining an initial log sequence based on the module identification comprises:
traversing a log sequence library, and determining log sequence identifiers of all log sequences in the log sequence library;
comparing the log sequence identification of each log sequence with the module identification;
and selecting the log sequence with the same identifier as the initial log sequence according to the comparison result.
4. The method of claim 1, wherein writing the log content information divided according to the classification identification into the initial log sequence comprises:
dividing the log content information based on the classification identification to obtain at least one piece of sub-log content information;
determining a writing position corresponding to each sub-log content information in the initial log sequence based on the classification identifier;
and writing the content information of each sub-log into the initial log sequence according to the writing position.
5. The method of claim 1, wherein generating the target log information corresponding to the initial log sequence through a log processing model comprises:
reading to-be-processed log content information and to-be-processed classification marks corresponding to the to-be-processed log content information in the initial log sequence;
constructing an information vector corresponding to the content information of the log to be processed and an identification vector corresponding to the classification identification to be processed;
and fusing the information vector and the identification vector, and inputting the fused log vector to be processed into a log processing model for processing to obtain target log information.
6. The method according to claim 5, wherein reading the to-be-processed log content information and the to-be-processed classification identifier corresponding to the to-be-processed log content information in the initial log sequence comprises:
selecting all log content information in the initial log sequence as to-be-processed log content information; selecting all the classification identifiers in the initial log sequence as to-be-processed classification identifiers;
alternatively, the first and second electrodes may be,
determining log content information which does not contain the selection identification in the initial log sequence as to-be-processed log content information; and selecting the classification identifier corresponding to the log content information which does not contain the selection identifier as the classification identifier to be processed.
7. The method of claim 1, wherein the initial log information is generated by a service operator through log collection interface input in a client and uploaded by the client; the log collection interface comprises a module identifier selection sub-interface and a classification identifier selection sub-interface; and acquiring the initial log information input by a service operator through the module identifier selection sub-interface and the classification identifier selection sub-interface.
8. The method of claim 1, wherein the training of the log processing model comprises:
acquiring initial sample log information, and a sample classification identifier and target sample log information corresponding to the initial sample log information;
inputting the initial sample log information and the sample classification identifier into an initial log processing model for processing to obtain predicted log information corresponding to the initial sample log information;
and adjusting parameters of the initial log processing model according to the target sample log information and the prediction log information until a log processing model meeting training stopping conditions is obtained.
9. The method of claim 1, wherein after the step of generating the target log information corresponding to the initial log sequence through the log processing model is performed, the method further comprises:
sending the target log information to an auditing node, and receiving an updating request fed back by the auditing node aiming at the target log information;
updating the target log information according to the updating request to obtain the log information to be issued;
and issuing the log information to be issued according to a preset issuing strategy.
10. The method according to claim 9, wherein after obtaining the log information to be published, the method further comprises:
and adjusting parameters of the log processing model according to the log information to be issued and the target log information, and updating the log processing model.
11. A log generating apparatus, comprising:
a receiving module configured to receive initial log information;
the analysis module is configured to analyze the initial log information to obtain log content information and module identification and classification identification which are associated with the log content information;
the writing module is configured to determine an initial log sequence according to the module identifier and write the log content information divided according to the classification identifier into the initial log sequence;
the generating module is configured to generate target log information corresponding to the initial log sequence through a log processing model under the condition that the initial log sequence meets a preset log conversion condition.
12. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the steps of the log generation method of any one of claims 1 to 10.
13. A computer readable storage medium storing computer instructions which, when executed by a processor, perform the steps of the log generation method of any one of claims 1 to 10.
CN202210313305.2A 2022-03-28 2022-03-28 Log generation method and device Pending CN114676104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210313305.2A CN114676104A (en) 2022-03-28 2022-03-28 Log generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210313305.2A CN114676104A (en) 2022-03-28 2022-03-28 Log generation method and device

Publications (1)

Publication Number Publication Date
CN114676104A true CN114676104A (en) 2022-06-28

Family

ID=82076743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210313305.2A Pending CN114676104A (en) 2022-03-28 2022-03-28 Log generation method and device

Country Status (1)

Country Link
CN (1) CN114676104A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941357A (en) * 2023-01-09 2023-04-07 北京安帝科技有限公司 Flow log detection method and device based on industrial safety and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941357A (en) * 2023-01-09 2023-04-07 北京安帝科技有限公司 Flow log detection method and device based on industrial safety and electronic equipment
CN115941357B (en) * 2023-01-09 2023-05-12 北京安帝科技有限公司 Industrial safety-based flow log detection method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110443552B (en) Method and device for automatically transmitting product main data information
CN111813399B (en) Machine learning-based auditing rule processing method and device and computer equipment
CN109800354B (en) Resume modification intention identification method and system based on block chain storage
Khodyrev et al. Discrete modeling and simulation of business processes using event logs
CN102411540A (en) Automatic management system of workflow-based common software testing process
CN109657065A (en) Knowledge mapping processing method, device and electronic equipment
CN109254817A (en) A kind of dial plate replacing options, system and the wearable device of wearable device
CN114676104A (en) Log generation method and device
CN111782635A (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN109947462A (en) A kind of decision support method and device that the change of software-oriented code is integrated
CN116467171A (en) Automatic test case construction device, method, electronic equipment and storage medium
CN104484156B (en) The edit methods of multilingual formula, editing system and multilingual formula editors
CN116431504A (en) Automatic test method, system and device
CN110874219A (en) Task authority control method and device
CN115840765A (en) Data processing method and device based on rule engine
CN111176624B (en) Method and device for generating stream type calculation index
CN114500691A (en) Information configuration method and device
JP2008027057A (en) Classification information management apparatus, classification information management system and classification information management program
CN112328498A (en) Service testing method and device, storage medium and electronic device
JP7391503B2 (en) Information processing system and information processing method
CN112206540A (en) Data processing method and device
CN112053132A (en) Host changing method and device
CN110750727A (en) Data processing method, device, system and computer readable storage medium
CN117076335B (en) Model test method, system, medium and electronic equipment
CN113298538B (en) Customer service data processing method and device

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