CN107291600A - A kind of recording method and device of daily record - Google Patents
A kind of recording method and device of daily record Download PDFInfo
- Publication number
- CN107291600A CN107291600A CN201610202805.3A CN201610202805A CN107291600A CN 107291600 A CN107291600 A CN 107291600A CN 201610202805 A CN201610202805 A CN 201610202805A CN 107291600 A CN107291600 A CN 107291600A
- Authority
- CN
- China
- Prior art keywords
- logging level
- level
- logging
- daily record
- module
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Abstract
The embodiments of the invention provide a kind of recording method and device of daily record, method therein includes:Determine the first logging level of application program;Determine the second logging level of functional module in the application program;Wherein, second logging level is set by the host computer of control system and obtained;When second logging level is less than first logging level, the second logging level according to the functional module records the corresponding daily record data of the functional module.The embodiment of the present invention can be realized logging level from meticulous procedure to functional module, when increasing the daily record data of certain functional module record, the daily record data of other functional modules record is not interfered with, so as to avoid system continually log, and then overhead can be reduced and systematic function is improved.
Description
Technical field
The present invention relates to semiconductor control field, the recording method of more particularly to a kind of daily record and dress
Put.
Background technology
System journal is the indispensable part of semiconductor equipment control software, and it is mainly used in record system
Various status informations during system operation, these information can specifically include IAP (Intelligent
Application Platform, Intelligent Application Platform) storehouse information and the information etc. of application program, it is right
System debug and emergency review are very helpful.
Generally, log and record can be determined whether by the configuration file in slave computer
Rank, for example set logging level be from low to high:OTHER、VERBOSE、EVENT、
PROBLEM、ERROR、FATAL.The logging level set in current configuration file is
EVENT, then it is all be superior to equal to EVENT, i.e. rank be EVENT,
PROBLEM, ERROR, FATAL syslog data will be recorded, VERBOSE with
The syslog data of OTHER ranks will be ignored.
In actual applications, when program, which breaks down, to be needed to be debugged, normally, this can be answered
OTHER is configured to the logging level of program, the application program running is so can record
In all daily records, still, can so cause system continually log, so as to cause very big
Overhead causes systematic function to decline.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is to provide recording method and the dress of a kind of daily record
Put, overhead can be reduced and systematic function is improved.
In order to solve the above problems, the invention discloses a kind of recording method of daily record, including:
Determine the first logging level of application program;
Determine the second logging level of functional module in the application program;Wherein, the second day
Will records rank and obtained by the host computer setting of control system;
When second logging level is less than first logging level, according to the function
Second logging level of module records the corresponding daily record data of the functional module.
Alternatively, first logging level is set by the host computer of control system and obtained.
Alternatively, methods described also includes:
The initial level of first logging level and second logging level is set to
Same levels.
Alternatively, second logging level is set as follows:
Second logging level is changed by host computer so that amended second log recording level
It is not less than or is higher than or equal to first logging level.
Alternatively, first logging level is set as follows:
First logging level is changed by host computer so that amended first log recording level
It is not less than or is higher than or equal to second logging level.
Alternatively, methods described also includes:
When first logging level is less than or equal to second logging level, according to institute
The first logging level for stating application program records the corresponding daily record data of the functional module.
Alternatively, methods described also includes:
Amended second logging level is preserved into the caching of the slave computer of control system.
The invention discloses a kind of tape deck of daily record, including:
First determining module, the first logging level for determining application program;
Second determining module, the second log recording level for determining functional module in the application program
Not;Wherein, second logging level is set by the host computer of control system and obtained;And
First logger module, for remembering in second logging level less than first daily record
When recording rank, it is corresponding that the second logging level according to the functional module records the functional module
Daily record data.
Alternatively, first logging level is set by the host computer of control system and obtained.
Alternatively, described device also includes:
Initial setup module, for by first logging level and second logging level
Initial level be set to same levels.
Alternatively, described device also includes:Second logging level setup module, it is described for setting
Second logging level;The second logging level setup module, including:
First modification submodule, for changing second logging level by host computer so that repair
The second logging level after changing is less than or is higher than or equal to first logging level.
Alternatively, described device also includes:First logging level setup module, it is described for setting
First logging level;The first logging level setup module, including:
Second modification submodule, for changing first logging level by host computer so that repair
The first logging level after changing is less than or is higher than or equal to second logging level.
Alternatively, described device also includes:
Second logger module, for being less than or equal to described second in first logging level
During logging level, the first logging level according to the application program records the functional module
Corresponding daily record data.
Alternatively, described device also includes:
Cache module, for amended second logging level to be preserved to the slave computer of control system
Caching in.
Compared with prior art, the embodiment of the present invention includes advantages below:
The embodiment of the present invention can set the second daily record of functional module in application program to remember by host computer
Record rank, during log, the second logging level of functional module in the application
Less than application program the first logging level when, can according to functional module the second log recording
Rank records the corresponding daily record data of the functional module, to ensure the second daily record note of functional module
, can be according to amended second logging level writing function mould when recording level modification for relatively low rank
The daily record data of block, so as to realize by logging level from meticulous procedure to functional module, and then is realized
The logging level of some functional module is changed, when increasing the daily record data of the functional module, Bu Huiying
The logging level of other functional modules is rung, i.e., will not increase the daily record data of other functional modules, can
To avoid system continually log, reduce overhead and improve systematic function.
Brief description of the drawings
Fig. 1 shows a kind of step flow chart of the recording method embodiment of daily record of the present invention;
Fig. 2 shows a kind of schematic flow sheet of the recording method of daily record of the present invention;And
Fig. 3 shows a kind of structured flowchart of the tape deck embodiment of daily record of the present invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, with reference to attached
The present invention is further detailed explanation with embodiment for figure.
The application program of semiconductor control system can generally include multiple functional modules, and institute is active at present
The logging level of energy module is all defaulted as the logging level of application program, if necessary to debug
During some functional module, such as robot drives module, the log recording of whole application program can be changed
Rank is OTHER, although all daily records when being so able to record that the operation of robot drives module,
It is while also system can be caused continually to remember so that the daily record quantity of other functional modules also increases therewith
Daily record data is recorded, so as to cause very big overhead to cause systematic function to decline.The core of the present invention
One of design is, the second logging level of functional module in application program is set by host computer,
And second logging level is delivered in the module daily record configuration file in slave computer so that should
Second logging level comes into force during log, in the second log recording level of functional module
Not Di Yu application program the first logging level when, can according to functional module the second daily record remember
Record rank records the corresponding daily record data of the functional module, so as to realize logging level from program
Functional module is refine to, and then when realizing the logging level for changing some functional module, is not interfered with
The logging level of other functional modules.
Embodiment one
Reference picture 1, shows a kind of step flow chart of the recording method embodiment of daily record of the present invention,
It can specifically include:
Step 101, the first logging level for determining application program;
Wherein, first logging level can be used for representing the corresponding log recording of whole application program
Rank, first logging level is stored in the program daily record configuration file of control system slave computer
In.It is often necessary to the first logging level be set by slave computer, however, to the behaviour of slave computer
Stronger professional technique is generally required, setting up procedure is relatively complicated, therefore, the embodiment of the present invention can be with
First logging level is set by host computer, and the first logging level of setting is transmitted
Into the program daily record configuration file of slave computer, so that the first logging level set can come into force.
, can be by parsing the corresponding program of application program in slave computer during system log
Daily record configuration file determines the first logging level of application program.It for example shown below is a journey
The signal of sequence daily record configuration file:
<Classification:IO;First logging level:PROBLEM;0>
<Classification:ALARM;First logging level:VERBOSE;1>
<Classification:APP;First logging level:EVENT;1>
The daily record of which classification, such as input and output to be recorded defined in the program daily record configuration file
The classifications such as IO, alarm ALARM, application APP, 1 represents the daily record data of the record category,
0 represents to ignore the daily record data of the category.First logging level is used in appointing system running
The lowest level of log, specifically, first logging level can be set from low to high
For:OTHER、VERBOSE、EVENT、PROBLEM、ERROR、FATAL.For example
In the signal of said procedure daily record configuration file, the first logging level of application APP configuration
For EVENT, then it is all be superior to or equal to EVENT, i.e. rank be EVENT,
PROBLEM, ERROR, FATAL application log data will be recorded, VERBOSE
It will be ignored with the application log data of OTHER ranks.
In actual applications, described program daily record configuration file can be with extensible markup language (Extensible
Markup Language, XML) form be stored in slave computer, so, when the system is operated,
It can read and parse the first logging level configured in the XML file and record corresponding daily record
Data.
Step 102, the second logging level for determining functional module in the application program;Wherein,
Second logging level is set by the host computer of control system and obtained;
In order to realize during the logging level for changing some functional module, other function moulds are not interfered with
The logging level of block, the embodiment of the present invention increases module daily record configuration file to match somebody with somebody in slave computer
The second logging level of each functional module is put, so that by logging level from meticulous procedure to work(
Can module.Second logging level can also be configured by host computer, and by upper
The second logging level set is delivered in the module daily record configuration file of slave computer by machine, so that
The second logging level set can come into force.During system log, solution can be passed through
The module daily record configuration file in slave computer is analysed to determine the corresponding second day of functional module in application program
Will records rank.
In one preferred embodiment of the invention, methods described can also comprise the following steps:
The initial level of first logging level and second logging level is set to
Same levels.
In a particular application, can be by first logging level and second logging level
Initial level be set to same levels, so, under initial situation, the mode of system log with
Existing process is identical.Needing to record some functional module more daily records, and do not interfering with other
During the original log recording mode of functional module, second log recording can be set as follows
Rank:
Second logging level is changed by host computer so that amended second log recording level
It is not less than or is higher than or equal to first logging level.Or,
First logging level can be set as follows:
First logging level is changed by host computer so that amended first log recording level
It is not less than or is higher than or equal to second logging level.
The embodiment of the present invention is by changing the second logging level or the first logging level so that
Second logging level is differed with the first logging level, in system operation, Ke Yigen
According to the low log of the two middle rank.For example, the second logging level of some functional module is repaiied
Instead below the first logging level, then system can according to the functional module the second log recording level
It is other that corresponding daily record data is recorded to the functional module.In a particular application, due to modification the second daily record note
Record rank and modification the first logging level process it is similar, for ease of describe, the embodiment of the present invention with
Change and be described exemplified by the second logging level, the process of the first logging level of modification is mutually joined
According to.
It is appreciated that above-mentioned the second logging level in host computer setting functional module, and should
Second logging level is delivered to the module daily record configuration file in slave computer, can be recorded not to realize
The method of the daily record data of congenerous module is intended only as a kind of preferred implementation of the present invention, in reality
In the application of border, the specific reality of the invention for the logging level of application program to be refined as to functional module
Existing mode is not any limitation as.It shown below is a kind of signal of module daily record configuration file of the present invention:
Functional module 1<name:cfgSrcDriverSrcMatch;Value:EVENT>
Functional module 2<name:cfgSrcDriverRobot;Value:EVENT>
Functional module 3<name:cfgSrcDriverBarCode;Value:EVENT>
Including three functional modules, title is respectively:cfgSrcDriverSrcMatch、
CfgSrcDriverRobot and cfgSrcDriverBarCode, and the second daily record of these three functional modules
It is initial level EVENT to record rank, first day with APP in said procedure daily record configuration file
Will record rank is identical.Assuming that needing the second daily record to robot drives module cfgSrcDriverRobot
Record rank is modified so that the module only records daily record data more than ERROR ranks, then may be used
Using by host computer by functional module cfgSrcDriverRobot the second log recording level modification as
In ERROR, and the module daily record configuration file being transferred in slave computer, also i.e. by above-mentioned module day
The corresponding Value values of cfgSrcDriverRobot are revised as ERROR in will configuration file, then in system
During log, robot drives mould can be determined by parsing above-mentioned module daily record configuration file
Second logging level of block is ERROR, then remembers for the functional module according to ERROR daily records
Record rank records corresponding daily record data.Second logging level of other functional modules does not make an amendment,
Therefore the daily record of record is constant.
In order that the operating process that must change the second logging level is more directly perceived, in one kind of the present invention
In preferred embodiment, the setting of a certain functional module can be changed by increasing operation interface in host computer
Value, amended arranges value is passed to as parameter the program that pre-sets in slave computer to change the work(
Second logging level of energy module, the program can be for setting of changing operation interface in host computer
Put value to update into the module daily record configuration file of slave computer, functional module is conveniently and efficiently changed to realize
The second logging level.
With reference to table 1, the example of configuration item in a kind of operation interface of the present invention is shown, can specifically be wrapped
Include:Functional module title, for identifying corresponding functional module;Currency:For representing functional module
The second current logging level;It is currently configured value:For represent be stored in the caching of slave computer but
The second logging level into module daily record configuration file is not preserved also;Arranges value:For setting work(
Second logging level of energy module.
Table 1
Functional module title | Currency | It is currently configured value | Arranges value |
cfgSrcDriverBarCode | EVENT | EVENT | EVENT |
cfgSrcDriverSrcMatch | EVENT | EVENT | EVENT |
cfgSrcDriverRobot | EVENT | EVENT | ERROR |
Wherein, drop-down list can be increased for arranges value, by select the list item in the drop-down list come
Change the second logging level of some functional module, such as robot drives module, the function
Entitled " cfgSrcDriverRobot " of module, can be selected in the drop-down list of its value of being correspondingly arranged
The drop-down list item of entitled " ERROR ", you can set the second logging level of the functional module
It is set to ERROR.In embodiments of the present invention, it is assumed that according to order from low to high by drop-down list
Corresponding logging level set gradually for OTHER, VERBOSE, EVENT, PROBLEM,
ERROR, FATAL, the then content for corresponding to log recording are reduced successively, wherein, when the second log recording
When rank is set to lowest level OTHER, daily record can be worked as with all daily records of writing function module
When record rank is set to ERROR, the daily record of ERROR and FATAL ranks is only recorded.Certainly,
In actual applications, those skilled in the art for the classification of the first/bis- logging level, quantity and
Order etc. can flexibly be set, and the present invention is not any limitation as to this.
Preferably, after the second logging level that functional module is changed in the operation interface of host computer,
Amended second logging level of the functional module can be not preserved in the module of above-mentioned slave computer
In daily record configuration file, only it is stored in the caching of slave computer, certainly, in a particular application, can also
Amended first logging level is stored in the caching of slave computer, with the second logging level
Preservation process it is similar, here is omitted.So so that amended second logging level exists
It can come into force, i.e., be restarted in system when caching relevant information is called in the current running of application program
Before, can be according to the corresponding daily record of the second logging level writing function module in caching;In system
After restarting, because the content in caching is cleared, then system is according to work(in module daily record configuration file
Second logging level log of energy module.As in above-mentioned table 1, " currency " is under
Current second logging level of the functional module obtained in the program daily record configuration file of position machine;" when
Preceding Configuration Values " are to be saved in after changing in the caching of slave computer, but are not saved in module daily record configuration also
The second logging level in file.
In actual applications, two buttons can be increased in the operation interface of above-mentioned host computer, for example " should
With currently " with " preservation " button, the second daily record that a certain functional module is changed in the operation interface is remembered
Record after rank, if clicking on " application is current " button, amended second logging level is only preserved
Into the caching of slave computer, come into force in the current running of application program, quilt is cached after system reboot
Empty, then according to the second logging level writing function module unmodified in module daily record configuration file
Daily record;If clicking on " preservation " button, amended second logging level is preserved to slave computer
Module daily record configuration file in, after system reboot still can according to before modification the second log recording level
The daily record of other writing function module.
Thus, it is possible to which the operation interface as needed in host computer configures the second daily record of each functional module
Record rank should record the daily record data of which rank to set, the day without influenceing other functional modules
Will data.
In actual applications, the module daily record configuration file can be with extensible markup language (Extensible
Markup Language, XML) form be stored in slave computer, when the system is operated, read simultaneously
Parse the second logging level that the XML file can obtain each functional module.
Step 103, second logging level be less than first logging level when, according to
The corresponding daily record data of the functional module is recorded according to the second logging level of the functional module.
In a particular application, by parsing program daily record configuration file and module daily record configuration in slave computer
After file, the first logging level of the program that can be applied and the second log recording of functional module
Rank, during writing function module correspondence daily record data, to the first logging level and second
Logging level is compared, and low that of selection rank is recorded, to ensure functional module
, can be according to amended second logging level when second log recording level modification is relatively low rank
The daily record data of writing function module.When the second logging level is less than the first logging level,
According to the corresponding daily record data of the second logging level writing function module;In the first logging level
During less than or equal to the second logging level, according to the first logging level writing function module correspondence
Daily record data.
In a kind of application example of the present invention, it is assumed that the journey of debugging cfgSrcDriverRobot functional modules
, it is necessary to record all daily records of the functional module to facilitate trace analysis problem during sequence.At this point it is possible to will
The corresponding arranges value of cfgSrcDriverRobot functional modules is configured to OTHER in table 1, and other are not repaiied
General the first logging level one all with application program of the logging level of functional module second changed
Sample is defaulted as EVENT.Because the second daily record note of amended cfgSrcDriverRobot functional modules
Record rank is OTHER, and the first logging level EVENT than application program is low, so system
, can be according to OTHER daily records for cfgSrcDriverRobot functional modules during log
Record rank is recorded, and the daily record data of the functional module can increase;And the second of other functional modules
Logging level is identical with the first logging level of application program, and the daily record of record is constant.So
Both the daily record data that debugging cfgSrcDriverRobot functional modules need is met, other will not be increased again
The daily record data of functional module.
It is detailed with reference to above-mentioned application example in order to more clearly describe the recording method of daily record of the invention
Describe the whole flow process of the bright embodiment of the present invention in detail.
Reference picture 2, shows a kind of schematic flow sheet of the recording method of daily record of the present invention, specifically may be used
To comprise the following steps:
Step 201, the first logging level for obtaining semiconductor system application program;
Specifically, semiconductor system application program is obtained by parsing the program daily record configuration file of slave computer
The first logging level, the first logging level of such as semiconductor system application program is
EVENT。
Step 202, the second logging level for obtaining functional module in semiconductor application program;
Specifically, cfgSrcDriverRobot is obtained by parsing the module daily record configuration file of slave computer
Second logging level of functional module, such as cfgSrcDriverRobot the second logging level
For OTHER.
Step 203, judge second logging level whether be less than first logging level,
If being less than, step 204 is performed;Otherwise, step 205 is performed;
Second logging level of cfgSrcDriverRobot functional modules is set to the first daily record note
That low in rank and the second logging level is recorded, in the present embodiment, due to the second log recording
Rank is less than the first logging level, therefore performs step 204.
Step 204, the second logging level of functional module is set to the second logging level,
Perform step 206;
Step 205, the second logging level of functional module is set to the first logging level;
Step 206, the daily record according to the second logging level writing function module.
Specifically, the second logging level according to each functional module records corresponding daily record data,
For cfgSrcDriverRobot functional modules, all daily record datas are recorded, for other unmodified days
Will records the functional module of rank, then only daily record of the record greater than or equal to EVENT logging levels
Data.
To sum up, the embodiment of the present invention can set the second daily record of functional module in application program in host computer
Record rank, during log, in the application functional module the second log recording level
Not Di Yu application program the first logging level when, can according to functional module the second daily record remember
Record rank records the corresponding daily record data of the functional module, to ensure the second daily record of functional module
, can be according to amended second logging level writing function when recording level modification for relatively low rank
The daily record data of module, so as to realize by logging level from meticulous procedure to functional module, Jin Ershi
The logging level of some functional module is now changed, will not when increasing the daily record data of the functional module
The logging level of other functional modules is influenceed, i.e., will not increase the daily record data of other functional modules,
System continually log can be avoided, overhead is reduced and improves systematic function;
In addition, the embodiment of the present invention changes a certain functional module by increasing operation interface in host computer
Arranges value, amended arranges value is passed to as parameter the program that pre-sets in slave computer to change
Second logging level of the functional module, the program can be for operation interface in host computer be changed
Arranges value update into the module daily record configuration file of slave computer, with realize conveniently and efficiently change function
Second logging level of module, without stronger specialized technical knowledge;
Further, the embodiment of the present invention can also be by the second log recording level of amended functional module
It is not preserved in the module daily record configuration file of slave computer, is only stored in the caching of slave computer, so,
So that amended second logging level only comes into force in the current running of application program, in system
After restarting, the second logging level of the functional module can revert to the value before modification, with
Meet the modification demand of a variety of logging levels.
Device embodiment
Reference picture 3, shows a kind of structured flowchart of the tape deck embodiment of daily record of the present invention, tool
Body can include:
First determining module 310, the first logging level for determining application program;
Second determining module 320, the second log recording for determining functional module in the application program
Rank;Wherein, second logging level is set by the host computer of control system and obtained;And
First logger module 330, for being less than described first day in second logging level
When will records rank, the second logging level according to the functional module records the functional module pair
The daily record data answered.
In one preferred embodiment of the invention, first logging level can be by controlling system
The host computer of system sets and obtained.
In another preferred embodiment of the invention, described device can also include:
Initial setup module, for by first logging level and second logging level
Initial level be set to same levels.
In another preferred embodiment of the present invention, described device can also include:Second log recording
Rank setup module, for setting second logging level;Second logging level is set
Module is put, including:
First modification submodule, for changing second logging level by host computer so that repair
The second logging level after changing is less than or is higher than or equal to first logging level.
In the still another preferable embodiment of the present invention, described device can also include:First log recording
Rank setup module, for setting first logging level;First logging level is set
Module is put, including:
Second modification submodule, for changing first logging level by host computer so that repair
The first logging level after changing is less than or is higher than or equal to second logging level.
In the still another preferable embodiment of the present invention, described device can also include:
Second logger module, for being less than or equal to described second in first logging level
During logging level, the first logging level according to the application program records the functional module
Corresponding daily record data.
In the still another preferable embodiment of the present invention, described device can also include:
Cache module, for amended second logging level to be preserved to the slave computer of control system
Caching in.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparison of description
Simply, the relevent part can refer to the partial explaination of embodiments of method.
Each embodiment in this specification is described by the way of progressive, and each embodiment is stressed
Be all between difference with other embodiment, each embodiment identical similar part mutually referring to
.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, dress
Put or computer program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, completely
The form of embodiment in terms of software implementation or combination software and hardware.Moreover, the embodiment of the present invention
Can use can be situated between in one or more computers for wherein including computer usable program code with storage
The computer journey that matter is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of sequence product.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and meter
The flow chart and/or block diagram of calculation machine program product is described.It should be understood that can be by computer program instructions
Each flow and/or square frame and flow chart and/or square frame in implementation process figure and/or block diagram
The combination of flow and/or square frame in figure.Can provide these computer program instructions to all-purpose computer,
The processor of special-purpose computer, Embedded Processor or other programmable data processing terminal equipments is to produce
One machine so that pass through the computing devices of computer or other programmable data processing terminal equipments
Instruction produce be used to realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The device for the function of being specified in multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable datas to handle
In the computer-readable memory that terminal device works in a specific way so that be stored in this computer-readable
Instruction in memory, which is produced, includes the manufacture of command device, and command device realization is in flow chart one
The function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions can also be loaded into computer or other programmable data processing terminals are set
It is standby upper so that series of operation steps is performed on computer or other programmable terminal equipments in terms of producing
The processing that calculation machine is realized, so that the instruction performed on computer or other programmable terminal equipments provides use
In realization in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The step of function of specifying.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art are once
Basic creative concept is known, then other change and modification can be made to these embodiments.So,
Appended claims are intended to be construed to include preferred embodiment and fall into the institute of range of embodiment of the invention
Have altered and change.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relation art
Language is used merely to make a distinction an entity or operation with another entity or operation, and not necessarily
It is required that or implying between these entities or operation there is any this actual relation or order.And
And, term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, from
And make it that the process, method, article or the terminal device that include a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, side
Method, article or the intrinsic key element of terminal device.In the absence of more restrictions, by sentence
The key element that "including a ..." is limited, it is not excluded that in the process including the key element, method, thing
Also there is other identical element in product or terminal device.
Above to a kind of recording method and device of daily record provided by the present invention, it is described in detail,
Specific case used herein is set forth to the principle and embodiment of the present invention, and the above is implemented
The explanation of example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for ability
The those skilled in the art in domain, the thought of the foundation present invention, in specific embodiments and applications
It will change, in summary, this specification content should not be construed as limiting the invention.
Claims (14)
1. a kind of recording method of daily record, it is characterised in that methods described includes:
Determine the first logging level of application program;
Determine the second logging level of functional module in the application program;Wherein, the second day
Will records rank and obtained by the host computer setting of control system;
When second logging level is less than first logging level, according to the function
Second logging level of module records the corresponding daily record data of the functional module.
2. the method as described in claim 1, it is characterised in that first logging level leads to
The host computer setting for crossing control system is obtained.
3. the method as described in claim 1, it is characterised in that methods described also includes:
The initial level of first logging level and second logging level is set to
Same levels.
4. the method as described in claim 1, it is characterised in that set described as follows
Two logging levels:
Second logging level is changed by host computer so that amended second log recording level
It is not less than or is higher than or equal to first logging level.
5. method as claimed in claim 2, it is characterised in that set described as follows
One logging level:
First logging level is changed by host computer so that amended first log recording level
It is not less than or is higher than or equal to second logging level.
6. the method as described in claim 1, it is characterised in that methods described also includes:
When first logging level is less than or equal to second logging level, according to institute
The first logging level for stating application program records the corresponding daily record data of the functional module.
7. method as claimed in claim 4, it is characterised in that methods described also includes:
Amended second logging level is preserved into the caching of the slave computer of control system.
8. a kind of tape deck of daily record, it is characterised in that described device includes:
First determining module, the first logging level for determining application program;
Second determining module, the second log recording level for determining functional module in the application program
Not;Wherein, second logging level is set by the host computer of control system and obtained;And
First logger module, for remembering in second logging level less than first daily record
When recording rank, it is corresponding that the second logging level according to the functional module records the functional module
Daily record data.
9. device as claimed in claim 8, it is characterised in that first logging level leads to
The host computer setting for crossing control system is obtained.
10. device as claimed in claim 8, it is characterised in that described device also includes:
Initial setup module, for by first logging level and second logging level
Initial level be set to same levels.
11. device as claimed in claim 8, it is characterised in that described device also includes:Second day
Will records rank setup module, for setting second logging level;Second log recording
Rank setup module, including:
First modification submodule, for changing second logging level by host computer so that repair
The second logging level after changing is less than or is higher than or equal to first logging level.
12. device as claimed in claim 9, it is characterised in that described device also includes:First day
Will records rank setup module, for setting first logging level;First log recording
Rank setup module, including:
Second modification submodule, for changing first logging level by host computer so that repair
The first logging level after changing is less than or is higher than or equal to second logging level.
13. device as claimed in claim 8, it is characterised in that described device also includes:
Second logger module, for being less than or equal to described second in first logging level
During logging level, the first logging level according to the application program records the functional module
Corresponding daily record data.
14. device as claimed in claim 8, it is characterised in that described device also includes:
Cache module, for amended second logging level to be preserved to the slave computer of control system
Caching in.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610202805.3A CN107291600B (en) | 2016-03-31 | 2016-03-31 | Log recording method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610202805.3A CN107291600B (en) | 2016-03-31 | 2016-03-31 | Log recording method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107291600A true CN107291600A (en) | 2017-10-24 |
CN107291600B CN107291600B (en) | 2021-01-08 |
Family
ID=60087400
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610202805.3A Active CN107291600B (en) | 2016-03-31 | 2016-03-31 | Log recording method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107291600B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109165147A (en) * | 2018-08-10 | 2019-01-08 | 北京奇艺世纪科技有限公司 | Log print control program, device, system, back-end server and headend equipment |
CN110058935A (en) * | 2019-04-26 | 2019-07-26 | 广州华多网络科技有限公司 | Log rank method of adjustment, apparatus and system, readable storage medium storing program for executing |
CN110932904A (en) * | 2019-11-29 | 2020-03-27 | 新华三半导体技术有限公司 | Key log recording method and device and network equipment |
CN112394862A (en) * | 2019-08-16 | 2021-02-23 | 台达电子工业股份有限公司 | Control method of upper computer |
CN113448818A (en) * | 2021-07-01 | 2021-09-28 | 山东浪潮通软信息科技有限公司 | Log tracking method, device and medium based on probability |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6539341B1 (en) * | 2000-11-06 | 2003-03-25 | 3Com Corporation | Method and apparatus for log information management and reporting |
CN101464908A (en) * | 2009-01-14 | 2009-06-24 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Log recording method and device |
CN104461844A (en) * | 2014-10-31 | 2015-03-25 | 大唐移动通信设备有限公司 | Log service method based on rule |
-
2016
- 2016-03-31 CN CN201610202805.3A patent/CN107291600B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6539341B1 (en) * | 2000-11-06 | 2003-03-25 | 3Com Corporation | Method and apparatus for log information management and reporting |
CN101464908A (en) * | 2009-01-14 | 2009-06-24 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Log recording method and device |
CN104461844A (en) * | 2014-10-31 | 2015-03-25 | 大唐移动通信设备有限公司 | Log service method based on rule |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109165147A (en) * | 2018-08-10 | 2019-01-08 | 北京奇艺世纪科技有限公司 | Log print control program, device, system, back-end server and headend equipment |
CN110058935A (en) * | 2019-04-26 | 2019-07-26 | 广州华多网络科技有限公司 | Log rank method of adjustment, apparatus and system, readable storage medium storing program for executing |
CN110058935B (en) * | 2019-04-26 | 2022-07-22 | 广州方硅信息技术有限公司 | Log level adjusting method, device and system and readable storage medium |
CN112394862A (en) * | 2019-08-16 | 2021-02-23 | 台达电子工业股份有限公司 | Control method of upper computer |
CN112394862B (en) * | 2019-08-16 | 2022-02-22 | 台达电子工业股份有限公司 | Control method of upper computer |
CN110932904A (en) * | 2019-11-29 | 2020-03-27 | 新华三半导体技术有限公司 | Key log recording method and device and network equipment |
CN110932904B (en) * | 2019-11-29 | 2022-08-09 | 新华三半导体技术有限公司 | Key log recording method and device and network equipment |
CN113448818A (en) * | 2021-07-01 | 2021-09-28 | 山东浪潮通软信息科技有限公司 | Log tracking method, device and medium based on probability |
Also Published As
Publication number | Publication date |
---|---|
CN107291600B (en) | 2021-01-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11372657B2 (en) | Systems and methods for adaptive user interfaces | |
CN107291600A (en) | A kind of recording method and device of daily record | |
CN102722364B (en) | For the extensibility based on mark of user interface | |
US8392880B2 (en) | Rapid application development for database-aware applications | |
CN109448100B (en) | Three-dimensional model format conversion method, system, computer device and storage medium | |
CN115617327A (en) | Low code page building system, method and computer readable storage medium | |
CN105426172A (en) | XML analysis technique and template language based dynamic WEB page generation method | |
CN111858371A (en) | Software testing method, system, storage medium and computer equipment | |
CN107480369B (en) | Design and operation method for classified display of DRC in PCB design | |
CN106293669A (en) | A kind of generation method and apparatus of web pages component | |
CN111522551B (en) | Method and device for realizing Web end online form designer | |
US20140208243A1 (en) | Method for providing a user interface, computer system and computer program product | |
US7904856B2 (en) | Arrangement handling commands as control system behaviors and data system behaviors | |
CN112231197A (en) | Page testing method and device and storage medium | |
CN103226475B (en) | Method and the device of control replacement is realized during transcoding | |
JP5747698B2 (en) | Requirements management support device | |
US20110167047A1 (en) | Editing apparatus, method, and storage medium | |
CN111679976A (en) | Method and device for searching page object | |
US20200257989A1 (en) | Method and apparatus for managing knowledge base, device and medium | |
WO2016147219A1 (en) | Text visualization system, text visualization method, and recording medium | |
CN111078217A (en) | Brain graph generation method, apparatus and computer-readable storage medium | |
JP6516343B2 (en) | Application user interface automatic test method, electronic device, system and storage medium | |
CN106648338A (en) | Method and device for editing data | |
US11526578B2 (en) | System and method for producing transferable, modular web pages | |
CN113672509A (en) | Automatic testing method, device, testing platform 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |