CN107256220A - Data logging generation method, device and electronic equipment - Google Patents
Data logging generation method, device and electronic equipment Download PDFInfo
- Publication number
- CN107256220A CN107256220A CN201710279907.XA CN201710279907A CN107256220A CN 107256220 A CN107256220 A CN 107256220A CN 201710279907 A CN201710279907 A CN 201710279907A CN 107256220 A CN107256220 A CN 107256220A
- Authority
- CN
- China
- Prior art keywords
- pending
- field
- data
- annotation information
- data logging
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/335—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
Abstract
The embodiment of the present invention provides a kind of data logging generation method, device and electronic equipment, and this method includes:Obtain pending data, the pending data includes pending field and the corresponding value of pending field, whether the pending field that judging pending data includes has default annotation information, if the pending field in pending data has default annotation information, after pending data is changed, data logging is generated.Whether this method according to pending field there is default annotation information to make a distinction pending data, make it possible to selective pending data be generated into data logging, without each pending data is generated into data logging, the processing speed of generation data logging is accelerated, and can also facilitate operation maintenance personnel to carry out checking for data logging.
Description
Technical field
The present invention relates to data processing field, set in particular to a kind of data logging generation method, device and electronics
It is standby.
Background technology
Back-end data daily record plays a very important role for operation maintenance personnel and developer, and operation maintenance personnel passes through rear number of units
Nearest operation note and peration data are checked according to daily record, developer checks the operation feelings of system by back-end data daily record
Condition.At present, it is mostly two ways to the storage of data logging, one kind is that data are not made to directly any processing directly storage,
This operation maintenance personnel that is not particularly suited for is checked;Another is that developer for convenience checked by operation maintenance personnel, is passed through
Writing code will store after the unified conversion of all data, but the operand that all data are changed is larger, and
It adds additional the workload of developer.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is that providing a kind of data logging generation method, device and electronics sets
It is standby, to solve the above problems.
To achieve these goals, the technical scheme that the embodiment of the present invention is used is as follows:
In a first aspect, the embodiments of the invention provide a kind of data logging generation method.This method includes:Obtain and treat first
Processing data, wherein, the pending data includes pending field and the corresponding value of pending field;Judge in pending data
Including pending field whether there is default annotation information;If the pending field in pending data has default annotation letter
Breath, after pending data is changed, generates data logging.
Further, in the above-mentioned methods, presetting annotation information includes the field after field to be converted and conversion.Judge
The step of whether pending field that the pending data includes has default annotation information, can specifically include:Inquiry
Field to be converted in the default annotation information being pre-stored in property file;Judge that treating in the default annotation information turns
Whether identical with the pending field in the pending data change field;If so, then judging treating in the pending data
Processing field has default annotation information;Otherwise, then judge the pending field in the pending data without default note
Release information.
Further, in the above-mentioned methods, after the pending data is changed, the step of generating data logging,
It can specifically include:By the corresponding value of the field after the conversion and the pending field according to the first preset format carry out group
Close, generate data logging.
Further, in the above-mentioned methods, the first preset format for example can be:Field after conversion:Pending field
Corresponding value.
Further, in the above-mentioned methods, after the pending data is changed, the step of generating data logging,
It can specifically include:By the corresponding value of the field after the pending field, the conversion and the pending field according to the
Two preset formats are combined, and generate data logging.
Further, in the above-mentioned methods, the second preset format for example can be:Field (pending word after conversion
Section):The corresponding value of pending field.
Further, in the above-mentioned methods, after the pending data is changed, the step of generating data logging,
It can specifically include:Judge the type to be stored of the data logging;, will be described if the type to be stored is the first kind
Field and the corresponding value of the pending field after conversion are combined according to the first preset format, generate data logging;If
The type to be stored is Second Type, then by the field after the pending field, the conversion and the pending field
Corresponding value is combined according to the second preset format, generates data logging.
Further, in the above-mentioned methods, field to be converted is, for example, English field, and the field after conversion is, for example, Chinese
Field.
Further, in the above-mentioned methods, it can be changed on the field to be converted correspondence application interface that annotation information includes
The element of change.
Second aspect, the embodiments of the invention provide a kind of data logging generating means.The device includes:Acquisition module,
For obtaining pending data, pending data includes pending field and the corresponding value of pending field;Judge module, is used for
Whether the pending field that judging pending data includes has default annotation information;Generation module, if for pending number
Pending field in has default annotation information, after pending data is changed, generate data logging.
The third aspect, the embodiments of the invention provide a kind of electronic equipment.The electronic equipment includes processor and storage
Device, memory is couple in processor, memory the data logging generating means that are stored with, and data logging generating means include one
Or multiple software modules by computing device, data logging generating means include:Acquisition module, for obtaining pending number
According to pending data includes pending field and the corresponding value of pending field;Judge module, for judging in pending data
Including pending field whether there is default annotation information;Generation module, if for the pending field in pending data
With default annotation information, after pending data is changed, data logging is generated.
Compared with prior art, a kind of data logging generation method provided in an embodiment of the present invention, device and electronic equipment,
By obtaining pending data, and judging pending data whether the pending field included has default annotation information, when
When pending field in pending data has default annotation information, after pending data is changed, generation data day
Whether will, this programme according to pending field there is default annotation information to make a distinction pending data, enabling selection
Property generates pending data data logging, without each pending data is generated into data logging, accelerates generation number
According to the processing speed of daily record, and the workload of developer can be reduced, can also facilitate operation maintenance personnel to carry out data logging
Check.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used required in embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore is not construed as pair
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the structural representation of electronic equipment provided in an embodiment of the present invention.
Fig. 2 is a kind of flow chart of data logging generation method provided in an embodiment of the present invention.
Fig. 3 is the flow chart of step S220 in a kind of data logging generation method provided in an embodiment of the present invention.
Fig. 4 is the flow chart of step S230 in a kind of data logging generation method provided in an embodiment of the present invention.
Fig. 5 is a kind of structured flowchart of data logging generating means provided in an embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing.Meanwhile, the present invention's
In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
As shown in figure 1, being the block diagram of a kind of electronic equipment 100 provided in an embodiment of the present invention.The electronic equipment
100 can be server, for example, data processing server, data logging processing server etc. or PC etc..
The electronic equipment 100 includes memory 110, one or more (one is only shown in figure) processors 120, and data logging life
Into device 300.
Directly or indirectly it is electrically connected between the memory 110 and the processor 120, to realize the transmission or friendship of data
Mutually.It is electrically connected with for example, these elements can be realized by one or more communication bus or signal wire each other.Data logging
Generating means 300, which include at least one, to be stored in memory 110 or be solidified in the form of software or firmware (firmware)
Software function module in the operating system (operating system, OS) of electronic equipment 100.Processor 120 is used to hold
Software function module or meter that the executable module stored in line storage 110, such as data logging generating means 300 include
Calculation machine program.
Wherein, memory 110 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-
Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory,
EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory,
EEPROM) etc..Wherein, memory 110 is used for storage program, and processor 120 is after execute instruction is received, configuration processor, under
Method performed by the electronic equipment for the flow definition for stating the announcement of any embodiment of the embodiment of the present invention can apply to processor
In, or realized by processor.
Processor 120 is probably a kind of IC chip, the disposal ability with signal.Above-mentioned processor can be
General processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network
Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), it is application specific integrated circuit (ASIC), ready-made programmable
Gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware components.Can be with
Realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be micro- place
It can also be any conventional processor etc. to manage device or the processor.
It is appreciated that the structure shown in Fig. 1 be only signal, electronic equipment 100 may also include it is more more than shown in Fig. 1 or
Less component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or its
Combination is realized.
Data logging generation method provided in an embodiment of the present invention and device, by obtaining pending data, and judge to treat
Whether the pending field that processing data includes has default annotation information, when the pending field in pending data has
During default annotation information, after pending data is changed, data logging is generated.
In embodiments of the present invention, default annotation information can in advance by developer or operation maintenance personnel according to the actual requirements
Configuration.For example, developer or operation maintenance personnel may more pay close attention to the data produced by the operation behavior of user, and for not being
As data that are produced by the operation behavior of user but being automatically generated by system, developer or operation maintenance personnel may be less
Need concern.In this case, developer or operation maintenance personnel can by produced by the operation behavior as user data (
Be exactly pending data) included by pending field as the field to be converted in default annotation information, and set corresponding
Field after conversion.
Whether data logging generation method provided in an embodiment of the present invention and device, can have pre- according to pending field
If annotation information makes a distinction pending data, enabling selective that pending data is generated into data logging, without
Each pending data is generated into data logging, the processing speed of generation data logging is accelerated, and exploitation can be reduced
The workload of personnel, can also facilitate operation maintenance personnel to carry out checking for data logging.
The data logging generation method and device in the embodiment of the present invention are retouched in more detail below in conjunction with accompanying drawing
State.
Fig. 2 shows the flow chart of data logging generation method provided in an embodiment of the present invention, referring to Fig. 2, this implementation
Example describes the handling process of electronic equipment 100, and method includes:
Step S210, obtains pending data, the pending data includes pending field and pending field is corresponding
Value.
It is when the element in application interface changes, the element changed is corresponding as a kind of embodiment
Field and the corresponding value of the field are used as pending data.Wherein, the element in application interface includes but is not limited to web page element
Or the element of the Application Program Interface of mobile terminal.Further, web page element can include word, the figure on web interface again
Piece, audio, animation, video etc..The element of the Application Program Interface of mobile terminal can include the text on Application Program Interface again
Word, picture, audio, animation, video etc..
Wherein, the element in application interface changes and can be divided into two kinds of situations, and a kind of situation is by user's correspondence
The change that element occurs in application interface caused by being modified with the element in interface.Such case is typically developer
Or operation maintenance personnel compares concern.
For example, when user has inserted " transformer " on the page with element 1 " film title " corresponding position, then should
Changed with the element in interface, using the corresponding field " movieName " of element 1 as pending field, by the field
Corresponding value " transformer " is used as the corresponding value of pending field, i.e., pending field " movieName " and pending field
Corresponding value " transformer " constitutes pending data 1.
And for example, when user has inserted " 2017-06-23 " on the page with element 2 " premiere time " corresponding position,
Then the element in application interface changes, using the corresponding field " firstShow " of element 2 as pending field, by this
The corresponding value " 2017-06-23 " of field that is, pending field " firstShow " and is treated as the corresponding value of pending field
The corresponding value of processing field " 2017-06-23 " constitutes pending data 2.
It is understood that the element shown on commonly used interface can be Chinese Fields or English field, but exploitation
Personnel when writing field corresponding with display elements on application interface usually using English field, for example " movieName " and
" firstShow " etc., therefore, causes element in application interface to change when user modifies to the element in application interface
When, the pending field in the pending data got is English field.
Another situation that element in application interface changes is that application interface content there occurs change but the change
Change is not that caused change actively is changed by user.What such case, typically developer or operation maintenance personnel were relatively not concerned with.
For example, when application interface content changes, program can automatically generate time on the page/element addition, update when
Between wait related pending field, i.e., can produce the pending data on addition time, renewal time etc..Applied for example, working as
During content update in interface, the pending data on renewal time can be produced, the pending field in the pending data
For " update_time ", the corresponding value of pending field " update_time " is the current time obtained automatically by program.
Whether step S220, the pending field that judging pending data includes has default annotation information.
As a kind of embodiment, the default annotation information includes the field after field to be converted and conversion.Default note
Releasing information can be determined jointly by developer and operation maintenance personnel in advance, the word that developer and operation maintenance personnel are required to check
Section, or operation maintenance personnel need the field checked as the field to be converted in default annotation information, and set after corresponding conversion
Field.It is understood that being changed with respect to cumbersome code, this setting mapped one by one in advance, more
Simple and effective.
Further, as a kind of embodiment, the field to be converted can be English words section, and the field after the conversion can
Think Chinese Fields.It is " film name by the field after conversion for example, field to be converted can be set into " movieName "
Claim ".For example, the default annotation information could be arranged to:@Attr (display=" film title ", attrField="
MovieName "), wherein, field to be converted is " movieName ", and the field after conversion is " film title ".
As a kind of embodiment, referring to Fig. 3, step S220 can include:
Field to be converted in the default annotation information being pre-stored in step S221, querying attributes file.
Default annotation information can be one or a plurality of.It is if the default annotation information is a plurality of, this is a plurality of
Default annotation is stored in configuration file, when needing to judge it is pre- whether pending field that pending data includes has
If annotation information, the configuration file is inquired about.
The property file is illustrated with a specific example below.
It is understood that above-mentioned code is a kind of simple embodiment of the property file, can also be in its base
Realized again on plinth it is nested, for example, can also be again in nesting CinimaInfo, the CinimaInfo in example MovieInfo
Multiple fields and the corresponding default annotation information of multiple fields are may further include again, and here is omitted.
The partial content in property file is shown in above-mentioned code, 3 default annotation letters are included in the property file
Breath, be respectively:
(1)@Attr (display=" film numbering ", attrField=" movieNo ") is for first default annotation
Information (1), its corresponding field to be converted is " movieNo ", and the field after changing is " film numberings ".
(2)@Attr (display=" film title ", attrField=" movieName ") are for first default note
Information (2) is released, its corresponding field to be converted is " movieName ", and the field after changing is " film titles ".
(3)@Attr (display=" premiere time ", attrField=" firstShow ") are for first default note
Information (3) is released, its corresponding field to be converted is " firstShow ", and the field after changing is " premiere times ".
Assuming that pending data now is:Pending data 1:Pending field " movieName " and pending field
Corresponding value " transformer ".Now, the field to be converted in the default annotation information in querying attributes file, that is, inquire about default
To be converted field of the annotation information (1) into (3), be respectively:" movieNo ", " movieName ", " firstShow ".
Step S222, judge field to be converted in the default annotation information whether with it is pending in the pending data
Field is identical.
Judge whether identical embodiment has a variety of to field to be converted with the pending field, for example, word can be based on
The matching algorithm of string is accorded with, here is omitted.
If so, then performing step S223;Otherwise, step S224 is performed.
Step S223, judges that the pending field in the pending data has default annotation information.
Example is connected, because the field " movieName " to be converted in annotation information (2) locate with treating in the pending data
Reason field " movieName " are identical, at this point it is possible to judge that the pending field in the pending data has default annotation letter
Breath.
Step S224, judges that the pending field in the pending data does not have default annotation information.
If it is understood that field to be converted and the pending field that the default annotation information in property file includes
Differ, then can determine that the pending field in the pending data does not have default annotation information.
Step S230, if the pending field in the pending data has default annotation information, by the pending data
After being changed, data logging is generated.
As a kind of embodiment, when the pending field in the pending data has default annotation information, obtain
The corresponding value of pending field in the pending data, by the corresponding value of the field after conversion and pending field according to first
Preset format is combined, and generates data logging.
Wherein, the embodiment of the first preset format can have a variety of, be preset as a kind of specific embodiment, first
Form is:Field after conversion:The corresponding value of pending field.
If for example, pending field is that the corresponding value of " movieName " pending field is " deformation in pending data 1
Buddha's warrior attendant ", it can be seen from step S220, the default annotation information that the pending field " movieName " has is@Attr
(display=" film title ", attrField=" movieName "), then now change after field be:" film title ",
The corresponding value of pending field is:" transformer ", after being combined according to the first preset format, the data logging of generation is:" films
Title ":" transformer ".
It is understood that corresponding due to only including field and pending field after conversion in the data logging of generation
Value, and the field after changing is stored in the way of operation maintenance personnel is accustomed to, therefore, above-mentioned embodiment is applied to O&M people
Member carries out checking for data logging.
As another embodiment, when the pending field in the pending data has default annotation information, obtain
The corresponding value of pending field in the pending data is taken, by the field and pending field pair after pending field, conversion
The value answered is combined according to the second preset format, generates data logging.
Wherein, the embodiment of the second preset format can have a variety of, be preset as a kind of specific embodiment, second
Form is:Field (pending field) after conversion:The corresponding value of pending field.
For example, if the pending field of pending data 2 is " firstShow ", the corresponding value of pending field is
" 2017-06-23 ", it can be seen from step S220, the annotation information that the pending field " firstShow " has is@Attr
(display=" premiere time ", attrField=" firstShow "), then now change after field be:" premiere time ",
Pending field is:FirstShow, the corresponding value of pending field:" 2017-06-23 ", is combined according to the second preset format
Afterwards, the data logging of generation is:The premiere time (firstShow):2017-06-23.
It is understood that due to including pending field in the data logging of generation, field after conversion and wait to locate
The corresponding value of field is managed, pending field and the corresponding value of pending field can be checked for developer, for O&M people
Field and the corresponding value of pending field that member can be checked after conversion, therefore, above-mentioned embodiment is simultaneously suitable for O&M people
Member and developer carry out checking for data logging.
As another embodiment, referring to Fig. 4, step S230 can include:
Step S231, judges the type to be stored of data logging.
The personnel of the data logging ultimately generated due to checking are different, therefore, it can according to the data logging of generation towards
Object, to generate different types of data logging.As a kind of embodiment, one can be set to be used to judge data logging
Type to be stored state value, by judging the state value, to determine the type to be stored of data logging.
If type to be stored is the first kind, step S232 is performed;If type to be stored is Second Type, step is performed
Rapid S233.
Step S232, the field after conversion and the corresponding value of pending field are combined according to the first preset format,
Generate data logging.
Wherein, the first kind correspondence is easy to the type that operation maintenance personnel is checked, its specific implementation participates in above-mentioned mistake
Journey.
Step S233, by the corresponding value of field and pending field after pending field, conversion according to the second default lattice
Formula is combined, and generates data logging.
Wherein, the Second Type correspondence is easy to the type that operation maintenance personnel and developer check, its specific implementation
Participate in said process.
If it is understood that the pending field in the pending data does not have default annotation information, by described in
Pending data will not be changed, and will not also be generated and be stored as data logging.
Said process is illustrated with a specific example below.
In the above-described example, when receiving pending data obj, judge whether pending data obj has default annotation
Information Attr, if pending data obj has default annotation information Attr, obtains treating in the default annotation information Attr
Change field attrField, such as movieName;Obtain the field after the conversion in the default annotation information Attr
DisplayValues, such as film title;And obtain the corresponding value of pending field in pending data obj
The title of the corresponding film of attrFieldValues, i.e. movieName;After the pending data obj is changed, press
According to preset format, preset format is in above-described embodiment:(pending field is corresponding by field displayValues after conversion
Value attrFieldValues), generate data logging.
Data logging generation method provided in an embodiment of the present invention, by obtaining pending data, and judges pending number
Whether there is default annotation information according to the pending field included, when the pending field in pending data has default note
When releasing information, after pending data is changed, data logging is generated, this programme is by pending data according to whether with pre-
It is each pending without inciting somebody to action if annotation information makes a distinction, enabling selective that pending data is generated into data logging
Data generate data logging, therefore can reduce the workload of developer, accelerate the processing speed of generation data logging,
And it can also facilitate operation maintenance personnel to carry out checking for data logging.
Referring to Fig. 5, being the high-level schematic functional block diagram of data logging generating means 300 provided in an embodiment of the present invention.Number
Run on according to daily record generating means 300 in electronic equipment 100, data logging generating means 300 include acquisition module 310, judged
Module 320 and generation module 330.
Acquisition module 310, for obtaining pending data, pending data includes pending field and pending field pair
The value answered.
Whether judge module 320, the pending field included for judging pending data has default annotation information.
As a kind of embodiment, field to be converted is English field, and the field after changing is Chinese Fields.
As a kind of embodiment, the member that can be changed on the field to be converted correspondence application interface that annotation information includes
Element.
As a kind of embodiment, annotation information include field to be converted and conversion after field, judge module 320,
Specifically for the field to be converted in default annotation information pre-stored in querying attributes file;Judge in default annotation information
Whether field to be converted is identical with the pending field in pending data;If so, then judging pending in pending data
Field has default annotation information;Otherwise, it is determined that the pending field in pending data does not have default annotation information.
Generation module 330, if there is default annotation information for the pending field in pending data, by pending number
After being changed, data logging is generated.
It is used as a kind of embodiment, generation module 330, specifically for the field after conversion and pending field is corresponding
Value is combined according to the first preset format, generates data logging.
As a kind of embodiment, the first preset format is:Field after conversion:The corresponding value of pending field.
As another embodiment, generation module 330, specifically for by the field after pending field, conversion and treating
The corresponding value of processing field is combined according to the second preset format, generates data logging.
As a kind of embodiment, the second preset format is:Field (pending field) after conversion:Pending field pair
The value answered.
It is used as another embodiment, generation module 330, the type to be stored specifically for judging data logging;If treating
Storage class is the first kind, then by the corresponding value of the field after conversion and pending field according to the first preset format carry out group
Close, generate data logging;If type to be stored is Second Type, by the field and pending word after pending field, conversion
The corresponding value of section is combined according to the second preset format, generates data logging.
Each module can be that now, above-mentioned each module can be stored in electronic equipment 100 by software code realization above
In memory 110.Each module can equally be realized by hardware such as IC chip above.
The embodiment of the present invention further discloses a kind of electronic equipment, and the electronic equipment includes processor and memory, and this is deposited
Reservoir is couple to the processor, and be stored with data logging generating means in the memory, and the data logging generating means include one
Individual or multiple software modules by the computing device, the data logging generating means include:
Acquisition module, for obtaining pending data, the pending data includes pending field and the pending field
Corresponding value;
Whether judge module, the pending field included for judging the pending data has default annotation information;
Generation module, it is if there is default annotation information for the pending field in the pending data, this is pending
After data are changed, data logging is generated.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation be all between difference with other embodiment, each embodiment identical similar part mutually referring to.
The technology of data logging generating means and electronic equipment that the embodiment of the present invention is provided, its realization principle and generation
Effect is identical with preceding method embodiment, to briefly describe, and device embodiment part does not refer to part, refers to preceding method real
Apply corresponding contents in example.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can also pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show according to the device of multiple embodiments of the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code
Part a, part for module, program segment or code includes one or more executable fingers for being used to realize defined logic function
Order.It should also be noted that in some implementations as replacement, the function of being marked in square frame can also be with different from accompanying drawing
Middle marked order occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they sometimes can also
Perform in the opposite order, this is depending on involved function.It is also noted that each side in block diagram and/or flow chart
The combination of frame and the square frame in block diagram and/or flow chart, can be with function or action as defined in performing it is special based on hard
The system of part is realized, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Point or modules individualism, can also two or more modules be integrated to form an independent part.
If function is realized using in the form of software function module and as independent production marketing or in use, can stored
In a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words to existing
The part for having part that technology contributes or the technical scheme can be embodied in the form of software product, the computer
Software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be personal meter
Calculation machine, server, or network equipment etc.) perform all or part of step of each of the invention embodiment method.And it is foregoing
Storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need explanation
, herein, such as first and second or the like relational terms be used merely to by an entity or operation with it is another
Individual entity or operation make a distinction, and not necessarily require or imply these entities or exist between operating any this actual
Relation or order.Moreover, term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion,
So that process, method, article or equipment including a series of key elements not only include those key elements, but also including not having
Other key elements being expressly recited, or also include for this process, method, article or the intrinsic key element of equipment.Do not having
In the case of having more limitations, the key element limited by sentence "including a ...", it is not excluded that in the process including key element, side
Also there is other identical element in method, article or equipment.
The preferred embodiments of the present invention are these are only, are not intended to limit the invention, for those skilled in the art
For member, the present invention can have various modifications and variations.Any modification within the spirit and principles of the invention, being made,
Equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter are under
Similar terms is represented in the accompanying drawing in face, therefore, once be defined in a certain Xiang Yi accompanying drawing, then need not in subsequent accompanying drawing
It is further defined and explained.
More than, it is only the embodiment of the present invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be covered
Within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Claims (11)
1. a kind of data logging generation method, it is characterised in that methods described includes:
Pending data is obtained, the pending data includes pending field and the corresponding value of the pending field;
Whether the pending field that judging the pending data includes has default annotation information;
If the pending field in the pending data has default annotation information, the pending data is changed
Afterwards, data logging is generated.
2. according to the method described in claim 1, it is characterised in that the default annotation information includes field to be converted and turned
Whether the field after changing, the pending field for judging that the pending data includes has default annotation information, including:
Field to be converted in the default annotation information being pre-stored in querying attributes file;
Judge whether the field to be converted in the default annotation information is identical with the pending field in the pending data;
If so, then judging that the pending field in the pending data has default annotation information;Otherwise, then treated described in judging
Pending field in processing data does not have default annotation information.
3. method according to claim 2, it is characterised in that it is described the pending data is changed after, generation
Data logging, including:
Field after the conversion and the corresponding value of the pending field are combined according to the first preset format, number is generated
According to daily record.
4. method according to claim 3, it is characterised in that first preset format is:Field after conversion:Wait to locate
Manage the corresponding value of field.
5. method according to claim 2, it is characterised in that it is described the pending data is changed after, generation
Data logging, including:
By the corresponding value of the field after the pending field, the conversion and the pending field according to the second preset format
It is combined, generates data logging.
6. method according to claim 5, it is characterised in that second preset format is:Field after conversion (is waited to locate
Manage field):The corresponding value of pending field.
7. method according to claim 2, it is characterised in that it is described the pending data is changed after, generation
Data logging, including:
Judge the type to be stored of the data logging;
If the type to be stored is the first kind, the field after the conversion and the corresponding value of the pending field are pressed
It is combined according to the first preset format, generates data logging;
If the type to be stored is Second Type, by the field after the pending field, the conversion and described wait to locate
The corresponding value of reason field is combined according to the second preset format, generates data logging.
8. the method according to any one of claim 2-7, it is characterised in that the field to be converted is English field,
It is described change after field into Chinese Fields.
9. the method according to any one of claim 1-7, it is characterised in that what the annotation information included waits to turn
Change the element that can be changed on field correspondence application interface.
10. a kind of data logging generating means, it is characterised in that described device includes:
Acquisition module, for obtaining pending data, the pending data includes pending field and the pending field
Corresponding value;
Whether judge module, the pending field included for judging the pending data has default annotation information;
Generation module, will be described pending if having default annotation information for the pending field in the pending data
After data are changed, data logging is generated.
11. a kind of electronic equipment, it is characterised in that the electronic equipment includes processor and memory, the memory coupling
The data logging generating means that are stored with are connected in the processor, the memory, and the data logging generating means include one
Individual or multiple software modules by the computing device, the data logging generating means include:
Acquisition module, for obtaining pending data, the pending data includes pending field and the pending field
Corresponding value;
Whether judge module, the pending field included for judging the pending data has default annotation information;
Generation module, will be described pending if having default annotation information for the pending field in the pending data
After data are changed, data logging is generated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710279907.XA CN107256220A (en) | 2017-04-25 | 2017-04-25 | Data logging generation method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710279907.XA CN107256220A (en) | 2017-04-25 | 2017-04-25 | Data logging generation method, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107256220A true CN107256220A (en) | 2017-10-17 |
Family
ID=60027891
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710279907.XA Pending CN107256220A (en) | 2017-04-25 | 2017-04-25 | Data logging generation method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107256220A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109919691A (en) * | 2019-02-27 | 2019-06-21 | 腾讯科技(深圳)有限公司 | A kind of system of data processing, method and device |
CN112100018A (en) * | 2019-06-17 | 2020-12-18 | 腾讯科技(深圳)有限公司 | Log information generation method and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101436962A (en) * | 2008-12-04 | 2009-05-20 | 金蝶软件(中国)有限公司 | Log management method and system |
CN102096623A (en) * | 2009-12-14 | 2011-06-15 | 深圳速浪数字技术有限公司 | Operation log generation method, server and business operational support system |
CN102356390A (en) * | 2009-03-16 | 2012-02-15 | 微软公司 | Flexible logging, such as for a web server |
CN103729380A (en) * | 2012-10-16 | 2014-04-16 | 阿里巴巴集团控股有限公司 | Data processing method, system and device |
US20150331898A1 (en) * | 2014-05-16 | 2015-11-19 | Huawei Technologies Co., Ltd. | Method and apparatus for concurrent access of mixed services |
-
2017
- 2017-04-25 CN CN201710279907.XA patent/CN107256220A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101436962A (en) * | 2008-12-04 | 2009-05-20 | 金蝶软件(中国)有限公司 | Log management method and system |
CN102356390A (en) * | 2009-03-16 | 2012-02-15 | 微软公司 | Flexible logging, such as for a web server |
CN102096623A (en) * | 2009-12-14 | 2011-06-15 | 深圳速浪数字技术有限公司 | Operation log generation method, server and business operational support system |
CN103729380A (en) * | 2012-10-16 | 2014-04-16 | 阿里巴巴集团控股有限公司 | Data processing method, system and device |
US20150331898A1 (en) * | 2014-05-16 | 2015-11-19 | Huawei Technologies Co., Ltd. | Method and apparatus for concurrent access of mixed services |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109919691A (en) * | 2019-02-27 | 2019-06-21 | 腾讯科技(深圳)有限公司 | A kind of system of data processing, method and device |
CN109919691B (en) * | 2019-02-27 | 2021-06-08 | 腾讯科技(深圳)有限公司 | Data processing system, method and device |
CN112100018A (en) * | 2019-06-17 | 2020-12-18 | 腾讯科技(深圳)有限公司 | Log information generation method and related device |
CN112100018B (en) * | 2019-06-17 | 2023-10-13 | 腾讯科技(深圳)有限公司 | Log information generation method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Karlsson | Software reuse: a holistic approach | |
CN111737499B (en) | Data searching method based on natural language processing and related equipment | |
US8892579B2 (en) | Method and system of data extraction from a portable document format file | |
WO2022116435A1 (en) | Title generation method and apparatus, electronic device and storage medium | |
US20220114821A1 (en) | Methods, systems, articles of manufacture and apparatus to categorize image text | |
US20150169511A1 (en) | System and method for identifying floor of main body of webpage | |
CN110442341B (en) | Interface configuration method and device of application program and terminal equipment | |
CN106599940A (en) | Picture character identification method and apparatus thereof | |
CN111143505B (en) | Document processing method, device, medium and electronic equipment | |
CN112214184B (en) | Custom printing method, device, computer equipment and medium | |
CN112084342A (en) | Test question generation method and device, computer equipment and storage medium | |
CN111428451A (en) | Text online editing method and device, electronic equipment and storage medium | |
CN112001159A (en) | Document generation method and device, electronic equipment and storage medium | |
CN107256220A (en) | Data logging generation method, device and electronic equipment | |
US20050132285A1 (en) | System and method for generating webpages | |
CN111355709A (en) | Data verification method and device, electronic equipment and computer readable storage medium | |
CN114626352B (en) | Report automatic generation method, device, computer equipment and storage medium | |
CN113947066A (en) | Text comparison method and device based on ASR, electronic equipment and storage medium | |
US11461411B2 (en) | System and method for parsing visual information to extract data elements from randomly formatted digital documents | |
CN111050194B (en) | Video sequence processing method, video sequence processing device, electronic equipment and computer readable storage medium | |
CN114201157A (en) | Method and system for customizing target service module by low code | |
CN112364068A (en) | Course label generation method, device, equipment and medium | |
US20180293315A1 (en) | Device for multiple condition search based on knowledge points | |
CN115796160B (en) | Thesis redundant data cleaning method and device based on lexical affix and storage medium | |
CN111190818B (en) | Front-end code analysis method, front-end code analysis device, computer 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171017 |