CN102467516A - Method, device and system for recording logs in equipment control process - Google Patents

Method, device and system for recording logs in equipment control process Download PDF

Info

Publication number
CN102467516A
CN102467516A CN2010105365935A CN201010536593A CN102467516A CN 102467516 A CN102467516 A CN 102467516A CN 2010105365935 A CN2010105365935 A CN 2010105365935A CN 201010536593 A CN201010536593 A CN 201010536593A CN 102467516 A CN102467516 A CN 102467516A
Authority
CN
China
Prior art keywords
journal file
log
daily record
information
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010105365935A
Other languages
Chinese (zh)
Inventor
杨洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing North Microelectronics Co Ltd
Original Assignee
Beijing North Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing North Microelectronics Co Ltd filed Critical Beijing North Microelectronics Co Ltd
Priority to CN2010105365935A priority Critical patent/CN102467516A/en
Publication of CN102467516A publication Critical patent/CN102467516A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method, a device and a system for recording logs in the equipment control process, which aim to solve the problem of log management. The method comprises the following steps of: 1, reading a log configuration file, parsing and thus acquiring a log file number threshold value which is preset in the log configuration file; 2, creating a new log file or opening the existing log file; 3, detecting whether the number of the created log files surpasses the log file number threshold value or not, and if the number of the created log files surpasses the log file number threshold value, deleting according to a preset strategy until the number of the created log files is less than or equal to the log file number threshold value; and 4, acquiring log information to be recorded and recording the log information to be recorded into the new log file or the opened existing log file. By the invention, the automatic management and maintenance of the log file number are realized, and the severe result that an industrial personal computer crashes because a hard disk is fully written by the log files is thoroughly avoided.

Description

Log recording method in the device control process, Apparatus and system
Technical field
The present invention relates to log-file technology, particularly relate to log recording method, Apparatus and system in a kind of device control process.
Background technology
In computer system or variety of network systems, log record is very necessary.And in the process control procedure that semiconductor is made, the control system of various process equipments is also usually carried out log record.These log records controlled plant in the various information in when operation, and these information are main foundations of tracking equipment operational process and emergency review.
The information of log record is preserved with fixing file layout usually, and every record comprises usually: writing time, write down the information such as title, rank and content of the module (or subsystem) of this daily record.With reference to Fig. 1, showed the daily record of a typical apparatus control system.Wherein, be 2009-07-22 09:18:46.334 the writing time of this daily record, and the module title that writes down this daily record is CONTROL, and the rank of this daily record is EVENT, and log content is PhyValvel is open.
Though the quantity of information of every log record is little, owing to the equipment on the production line need run without interruption for a long time, so control system can produce a large amount of journal files.If there are not a kind of these journal files of effective and efficient manner management, cause the industrial computer hard disk of operation control system to be write completely probably, finally cause serious consequences such as deadlock.
Therefore, at present the technical issues that need to address are: in log record process, and a large amount of journal files that how produce in the management equipment control procedure.
Summary of the invention
The present invention provides log recording method, the Apparatus and system in a kind of device control process, to solve the problem of log management.
In order to address the above problem, the invention discloses the log recording method in a kind of device control process, comprising:
Step 1 reads the daily record configuration file and resolves, and obtains journal file quantity threshold value preset in the said daily record configuration file;
Step 2, newly-built journal file or open existing journal file;
Step 3, whether the quantity that detects the journal file created exceeds said journal file quantity threshold value, if exceed, then deletes according to presetting strategy, is less than or equal to said journal file quantity threshold value up to the quantity of the said journal file of having created;
Step 4 obtains to treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in.
Preferably, said newly-built journal file or open before the existing journal file also comprises: obtain journal file preset in the said daily record configuration file and deposit the path; Read said journal file and deposit under the path journal file corresponding log file name that each has been created, write down in the journal file title its date created of corresponding journal file; Sequencing according to date created is saved in each the journal file title that is read in the formation of journal file title successively.
Preferably, said newly-built journal file or open existing journal file comprises: judge whether the formation of said journal file title is empty, if be sky, then according to the newly-built journal file of current date and open; If be not empty, then, extract and write down the journal file title of date created the latest in the formation of said journal file title, whether date created is identical with current date the latest to judge this, if different, then according to the newly-built journal file of current date and open; If identical, then, judge said record the latest date created the journal file title the size of corresponding journal file whether reach preset value, if reach, then according to the newly-built journal file of current date and open; If do not reach, then open this journal file.
Preferably, delete according to presetting strategy in the said step 3, comprising: the journal file title and the corresponding journal file thereof of record earliest creation date in the formation of the said journal file title of circulation deletion.
Preferably, said step 4 comprises: obtain one and treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in; Said method also comprises: judge whether the said size of the journal file of recorded logs information of treating of record reaches preset value, if reach, then according to the newly-built journal file of current date and open, and return step 3; If do not reach, then return step 4, continue to obtain next bar and treat recorded logs information, and write down the said recorded logs information of treating of next bar.
Preferably, said method also comprises: obtain daily record level limit information preset in the said daily record configuration file, said daily record level limit information comprises the preset daily record level limit of corresponding each module; Judge whether the log information that module generates is put into message queue according to said daily record level limit information; If the daily record rank of the log information that module generates is lower than should the preset daily record level limit of module; Then abandon this daily record, otherwise put into message queue; Said step 4 obtains to treat recorded logs information from said message queue.
Preferably, saidly judge whether the log information that module generates is put into before the message queue, also comprise: obtain the preset identification information that whether needs log of corresponding each module in the said daily record configuration file according to daily record level limit information; Whether the log information that generates according to said identification information judgment module the needs record, if desired, then continues to judge to daily record level limit that should module; If do not need, then abandon this daily record.
The present invention also provides a kind of log recording apparatus that is used for the device control process, comprising:
The Command Line Parsing unit is used to read the daily record configuration file and resolves preset journal file quantity threshold value in the acquisition daily record configuration file;
Newly-built or open the unit, be used for newly-built journal file or open existing journal file;
The quantity of documents detecting unit; Whether the quantity that is used to detect the journal file of having created exceeds said journal file quantity threshold value; If exceed, then delete according to presetting strategy, be less than or equal to said journal file quantity threshold value up to the quantity of the said journal file of having created;
The log record unit is used for obtaining to treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in.
Preferably, said Command Line Parsing unit also is used for obtaining the preset journal file of said daily record configuration file and deposits the path; Then said device also comprises: filename is preserved the unit, be used to read said journal file and deposit journal file corresponding log file name of respectively having created in the path under, write down in the journal file title its date created of corresponding journal file; Sequencing according to creation-time is saved in each the journal file title that is read in the formation of journal file title successively.
Preferably, said newly-built or open the unit and comprise: new document creation subelement is used for according to the newly-built journal file of current date and opens; Ancient deed is opened subelement, is used to open existing journal file; First judgment sub-unit is used to judge whether the formation of said journal file title is empty, if be empty, then triggers new document creation subelement; If be not empty, then trigger the date and compare subelement; Date is subelement relatively, is used for extracting the formation of said journal file title and writes down the journal file title of date created the latest, and whether date created is identical with current date the latest to judge this, if different, then triggers new document creation subelement; If identical, then trigger second judgment sub-unit; Second judgment sub-unit, be used to judge said record the latest date created the journal file title the size of corresponding journal file whether reach preset value, if reach, then trigger new document creation subelement; If do not reach, then trigger ancient deed and open subelement and open this journal file.
Preferably, the journal file title and the corresponding journal file thereof of record earliest creation date in the formation of the said journal file title of said quantity of documents detecting unit circulation deletion are up to being less than or equal to said journal file quantity threshold value.
Preferably, said log record unit obtains one and treats recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in, trigger second judgment sub-unit then; Second judgment sub-unit judges that whether the said size of the journal file of recorded logs information of treating of record reaches preset value, if reach, then triggers new document creation subelement; If do not reach, then trigger log record unit next bar of continuation acquisition and treat recorded logs information, and write down the said recorded logs information of treating of next bar.
Preferably, said Command Line Parsing unit also is used for obtaining the preset daily record level limit information of said daily record configuration file, and said daily record level limit information comprises the preset daily record level limit of corresponding each module; Then said device also comprises: daily record rank judging unit; Be used for judging whether the log information that module generates is put into message queue according to said daily record level limit information; If the daily record rank of the log information that module generates is lower than should the preset daily record level limit of module; Then abandon this daily record, otherwise put into message queue; Said log record unit obtains to treat recorded logs information from said message queue.
Preferably, said Command Line Parsing unit also is used for obtaining the preset identification information that whether needs log of corresponding each module of said daily record configuration file; Then said device also comprises: whether the judging unit that whether writes down, the log information that is used for generating according to said identification information judgment module the needs record, if desired, then triggers daily record rank judging unit; If do not need, then abandon this daily record.
The present invention also provides a kind of semiconductor machining system, comprises semiconductor processing equipment and semiconductor control system, and said semiconductor control system comprises above-mentioned log recording apparatus.
Compared with prior art, the present invention has the following advantages:
At first; The present invention proposes a kind of improved log recording method; Through preset journal file quantity threshold value in the daily record configuration file; And whether the journal file quantity that detection has in real time been created in log record process exceeds said journal file quantity threshold value; Be less than or equal to threshold value if exceed then delete, thereby realized the automatic management and the maintenance of journal file quantity, fundamentally avoided journal file to write the serious consequence that full hard disk causes industrial computer to crash until quantity.
Secondly; Because when the slip-stick artist carries out emergency review in the analysis log content; Possibly only pay close attention to other log information of a specific order of particular module (or subsystem) record, so the present invention can specify the level limit of log record for concrete module through the daily record level limit information of preset corresponding each module in the daily record configuration file; Realized the set-up mode of daily record rank more flexibly; The record that makes log information more flexibly, has effectively reduced the record of a large amount of garbages, thereby has improved the performance of apparatus control system and reduced slip-stick artist's screening, analyze the difficulty of log information.
Once more, the present invention deposits the path through preset journal file in the daily record configuration file, can change the storing directory of journal file neatly.
Description of drawings
Fig. 1 is the log information synoptic diagram of typical apparatus control system in the prior art;
Fig. 2 is the log recording method process flow diagram in the embodiment of the invention one said a kind of device control process;
Fig. 3 is the synoptic diagram of daily record configuration file in the embodiment of the invention two;
Fig. 4 is the flowchart of daily record thread A in the embodiment of the invention two;
Fig. 5 is the flowchart of daily record thread B in the embodiment of the invention two;
Fig. 6 is the log recording apparatus structural drawing in the embodiment of the invention three said a kind of device control processes.
Embodiment
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing and embodiment the present invention done further detailed explanation.
The present invention proposes a kind of improved log recording method, a large amount of journal files that effectively produce in the management system.To be that example is elaborated below with the log record of process equipment control procedure.
Embodiment one:
With reference to Fig. 2, be the log recording method process flow diagram in the embodiment of the invention one said a kind of device control process.
In the operational process of various process equipments, carry out log record by apparatus control system.Apparatus control system generally comprises IO (input and output), Control (control), Alarm (warning), Interlock (interlocking), Recipe (technical recipe), Setup functional modules such as (configurations); All can produce a large amount of log informations to each functional module, following flow process will be accomplished the record of these log informations.
Before starting log record flow process, at first need in the daily record configuration file, be configured the log record mode, have journal file quantity threshold value in the concrete configuration, which module needs information such as log, daily record level limit.After configuration is accomplished, the log record flow process below starting:
Step 201 reads the daily record configuration file and resolves preset journal file quantity threshold value in the acquisition daily record configuration file;
In addition, can also obtain other configuration informations in the daily record configuration file, like preset identification information that whether needs log of corresponding each module and preset daily record level limit information etc.
Step 202, newly-built journal file or open existing journal file;
Two kinds of operations are arranged here, and a kind of is a newly-built journal file, and another kind is to open the journal file of having created.Wherein, a newly-built journal file need satisfy following two conditions usually, otherwise just opens existing journal file:
The first, journal file be between section and create for example a day, so all need a newly-built journal file every day at regular intervals;
The second, the size of journal file is stipulated, if file size surpasses preset value,, also need a newly-built journal file like 1M.
Based on above 2 points, present embodiment provides a kind of concrete grammar that judges whether newly-built journal file or open existing journal file, as follows:
Determine the file designation rule earlier, that is: all write down date created in the journal file title of all establishments, name with " syslog+ date ", like syslog20080428.txt, syslog20080429.txt; If the size of journal file surpasses 1M, a then newly-built file; If new file is on the same day, to create, add numeral number on the basis that then filename will be named in front, like syslog20080428-1.txt, syslog20080428-2.txt.
Based on this naming rule, when carrying out log record, the sequencing that the journal file title that before judging, at first will create is created according to journal file is saved in the formation of a journal file title successively; Then, judge whether the formation of journal file title is empty, if be empty, the journal file that expression has not existed need be according to the newly-built journal file of current date; If be not empty, then extract and write down the journal file title of date created the latest in the formation of said journal file title, judge whether the date created of this journal file title record is identical with current date, if different, then according to the newly-built journal file of current date; If identical, then continue to judge said record the latest date created the journal file title the size of corresponding journal file whether reach preset value 1M, if reach, then according to the newly-built journal file of current date; If do not reach, then open this journal file.In this process, if judgement needs newly-built journal file, then newly-built journal file title also can be put into said formation.
Wherein, Said current date can be current system data; And the said date comprised year, month and day information, when whether the therefore above-mentioned date created of judging this journal file title record with current date identical, can day judge for unit; If promptly the date created and the current date of this journal file title record are on the same day, then are identical; If not on the same day, then be different.
Need to prove; In the present embodiment; The journal file of all establishments can be unified to leave under the fixed schedule (or path), just can directly under fixed path, read the journal file title like this in the log record process and is saved in the formation successively according to the sequencing that journal file is created.But this preserving type can't be changed the storing directory of journal file, underaction.Based on this, present embodiment has also proposed a kind of improved disposal route, can in the daily record configuration file, preset journal file and deposit the path, promptly the daily record file to deposit the path configurable, so just allow to change neatly and deposit the path.In log record process; At first resolve daily record configuration file acquisition journal file and deposit the path; Under this path, read the journal file corresponding log file name that each has been created then, and successively each the journal file title that is read is saved in the formation of journal file title according to the sequencing of date created.
Step 203; Whether the quantity that detects the journal file of having created exceeds said journal file quantity threshold value, if exceed, then deletes according to presetting strategy; Quantity up to the said journal file of having created is less than or equal to said journal file quantity threshold value, continues step 204 again;
For the journal file quantity in the control system; Can detect the title quantity in the formation of above-mentioned journal file title; If surpassed the journal file quantity threshold value of setting in the daily record configuration file; Can satisfy the requirement of said journal file quantity threshold value through a part of file name in the deletion formation and corresponding journal file thereof.
Wherein, adoptable deletion strategy has multiple, for example creates the earliest journal file title and corresponding journal file thereof according to the sequencing deletion of creation-time, or the like.
Step 204 obtains to treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in.
On the basis of satisfying the described journal file quantity of step 203 threshold value, can be in above-mentioned newly-built journal file or the existing journal file opened with the log information recording that generates.
In the present embodiment, each module in the apparatus control system (like IO, Control, Alarm, Interlock, Recipe, Setup) all can produce log information, and these log informations are placed into message queue and wait is recorded in the journal file.And in the described log record process of above-mentioned steps, be from said message queue, to take out log information one by one to record in the journal file again.In the process that this circulation is taken out and write down; Because the size of journal file limits to some extent; So log information of every record, whether the size that just need rejudge the journal file of current record log information reaches preset value 1M, if reach; Then according to the newly-built journal file of current date, and return the judgement that step 203 is proceeded quantity of documents; If do not reach, then continue from said message queue, to take out next bar log information and record in the current journal file.
In addition; The log information that each module produces is before being placed into message queue; Also need (need log according to the identification information of which module needs log in the daily record configuration file as identifying 1 expression; Sign 0 expression is not write down) and configuration information such as daily record level limit information judge that wherein, said daily record level limit information comprises the preset daily record level limit of corresponding each module.During judgement, whether the module that earlier produces current log information according to said identification information judgment the needs log, if do not need, then abandons this daily record; If desired, then continue to judge according to daily record level limit information the rank of current log information, only the daily record more than or equal to institute's configuration level just can be placed into message queue, and also can be dropped less than the daily record of institute's configuration level.Through such screening, those daily records that are placed into message queue all are the daily records that need record in the file, so directly take out log information and record the journal file from message queue in the log record process and get final product.
Need to prove; In the present embodiment, can be to the unified daily record level limit of all block configuration, still in practical application; When the slip-stick artist carries out emergency review in the analysis log content; Possibly only pay close attention to other log information of a specific order of particular module (or subsystem) record, but this just requires daily record rank flexible configuration, at utmost reduces the record of garbage.Based on this, present embodiment changes to above-mentioned unified daily record rank configuration mode " based on the rank configuration of module ", promptly in the daily record configuration file, can also different daily record level limit be set to disparate modules.Like this; When the log information that in the log record process each module is generated screens; Can obtain daily record level limit information according to the daily record configuration file, whether the daily record rank of the log information that generates of judge module is lower than to should the preset daily record level limit of module, if be lower than then; Then abandon this daily record, otherwise put into message queue.This is the configuration mode that concrete module is specified the level limit of log record, and the record that can make log information more flexibly, effectively and has reduced slip-stick artist's screening, analyzes the difficulty of log information.
In sum; Above-mentioned log recording method is through increasing the configuration item of " journal file quantity threshold value ", " based on the daily record rank configuration of module ", " journal file is deposited the path " in the daily record configuration file; And the log record flow process of carrying out based on said configuration; Realize the automatic management and the maintenance of journal file quantity, fundamentally avoided journal file to write the serious consequence that full hard disk causes industrial computer to crash; And, realized the set-up mode of daily record rank more flexibly, reduced the record of a large amount of garbages; And, can also change the storing directory of journal file neatly.
Embodiment two:
Based on the content of embodiment one, present embodiment provides a kind of log recording method more specifically, and is specific as follows.
In the present embodiment, apparatus control system comprises IO (input and output), Control (control), Alarm (warning), Interlock (interlocking), Recipe (technical recipe), Setup functional modules such as (configurations); The daily record rank is divided into VERBOSE (detailed, tediously long information), EVENT (important event information), PROBLEM (problem that occurs during program run normally neither be wrong though do not belong to), ERROR (error message) and five ranks of FATAL (fatal message) from low to high according to the order of severity.Configuration informations such as " journal file is deposited the path ", " journal file quantity threshold value ", " which module records daily record ", " the daily record rank of the module of log " have been write down in the daily record configuration file.
With reference to Fig. 3, be the synoptic diagram of daily record configuration file in the embodiment of the invention two.Wherein, < Dir>node configuration journal file deposit the path, all journal files that apparatus control system generates all will be kept under this catalogue.< Threshold>node configuration the threshold value of journal file quantity, in case quantity of documents exceeds this threshold value, the daily record thread can reach threshold value until quantity according to the oldest file of time order and function order deletion.Disposed the daily record level limit information (Configuration Values of corresponding level) that has which module to want log and each module under < Branch>node; As shown in the figure; Control, Alarm, Interlock and App module are wanted log (Configuration Values is 1); Their daily record level limit is respectively EVENT, ERROR, PROBLEM and EVENT, and all the other module I O, DataLog, Recipe and Setup be log (Configuration Values is 0) not.
Based on daily record configuration shown in Figure 3; Apparatus control system starts two daily record threads and cooperates the completion log record; Put into message queue after the log information screening that one of them thread A is used for each module of system is produced, another thread B is used for taking out the log information line item of going forward side by side from said message queue.Thread A and thread B can executed in parallel, thereby improve the efficient of log record.
The processing procedure of these two threads is described respectively through Fig. 4 and flow process shown in Figure 5 below.
With reference to Fig. 4, be the flowchart of daily record thread A in the embodiment of the invention two.
Step 401, apparatus control system is according to daily record configuration file initialization daily record thread A;
Which specifically comprise: read and resolve the daily record configuration file, extract " module records daily record " and " the daily record rank of the module of log " information;
Step 402, starting log thread A;
Step 403, thread A receives the log record request of each module;
When certain module (like Control) in the apparatus control system produces a log information, promptly send the request of this daily record of record to thread A;
Step 404, thread A judges whether to write down the daily record of this module, asks if do not write down then refuse, otherwise continues next step judgement;
Whether the thread A module that " which module records daily record " can be judged request according to configuration information log, and with reference to Fig. 3, the Configuration Values of module Control is 1, representes that the log information that this module produces needs record;
Step 405, thread A judges whether the daily record rank of this module meets the demands, if satisfy then accept request, and log information is put into message queue; If do not satisfy, then refusal request.
Thread A judges according to configuration information " the daily record rank of the module of log " whether the daily record rank of current request module is lower than the preset daily record level limit of this module, if be lower than, and then refusal request; Otherwise, the log information of request is put into message queue.With reference to Fig. 3, the daily record rank of module Control is EVENT in the configuration file, promptly have only the order of severity more than or equal to other daily record of EVENT level just by record.If the rank of the log information that module Control produces is ERROR, then satisfy the level limit requirement, this log information can be placed into message queue; If the rank of this log information is VERBOSE, then be lower than the EVENT rank, this log information will be dropped.
With reference to Fig. 5, be the flowchart of daily record thread B in the embodiment of the invention two.
Step 501, apparatus control system is according to daily record configuration file initialization daily record thread B;
Specifically comprise:
1) reads and resolve the daily record configuration file, extract " journal file is deposited the path " and " journal file quantity threshold value " information;
2) detect the file that " journal file is deposited the path " indicated and whether exist,, then dish out unusual and withdraw from if do not exist or thread B does not have the access limit of this document folder;
3) read existing journal file title in " journal file is deposited the path "; The sequencing of creating according to journal file successively these file names are saved in the formation (file early is preceding, as: syslog20100830.txt|syslog20100830-1.txt|syslog20100830-2 .txt|syslog20100830-3.txt|syslog20100831.txt|syslog20100 901.txt|syslog20100901-1.txt|syslog20100901-2.txt|syslog 20100902.txt);
4) judge " journal file quantity threshold value ", if this value equal 0 default threshold score for infinitely great, promptly do not have the restriction of journal file number.
Step 502, starting log thread B;
Step 503, thread B judges whether newly-built journal file, if then continue step 504, if otherwise open already present journal file, and continue step 505;
Concrete determination methods is:
1) judge whether the formation of journal file title is empty, if journal file empty then that expression has not existed, and then would need newly-built; If be not empty, then carry out 2);
2) file name of last (up-to-date, as promptly to create the latest) in the formation of extraction journal file title, if the date created of this document title record is different with current system data, then need be according to newly-built journal file of system data; If identical, then carry out 3);
Whether the title corresponding log file size of 3) judging in the formation of journal file title last (up-to-date) reaches 1M, if then need newly-built; If otherwise need not be newly-built, but open the said journal file of (up-to-date) at last.
Wherein, if the newly-built journal file of judgement needs, thread B understands newly-built journal file and its title is appended in the formation of journal file title.
New journal file is created and opened to step 504;
Step 505 detects the journal file quantity of having created and whether exceeds journal file quantity threshold value;
If then delete the journal file of the oldest (promptly creating the earliest), up to reaching journal file quantity threshold value according to the time order and function order; If, then do not continue step 506;
Promptly detect the formation of journal file title, if the file number surpasses " journal file quantity threshold value ", then delete the corresponding journal file of foremost title, from formation, remove this title simultaneously, so circulation equals threshold value until the file number.
Step 506 judges whether exist wait by recorded logs information in the message queue, if then continue step 507; If, do not wait for that then new log information is placed in the message queue;
Wherein, wait in the said message queue by recorded logs information through thread A whether writing down the screening that whether meets the demands with rank;
Step 507 is taken out a log information from message queue;
Step 508, log is in file;
Step 509 judges whether to withdraw from thread B, if, then end record flow process; If, then do not continue step 510;
Step 510, judging whether needs newly-built journal file, if then return step 504; If, then do not return step 506.
Said judgement is meant: whether whether the size of judging current journal file reach preset value 1M and arrived in new one day, if satisfy wherein any one condition, then returns the newly-built journal file of step 504; Otherwise, return step 506.
Embodiment three:
Based on the content of said method embodiment, present embodiment provides corresponding device thereof and system embodiment.
With reference to Fig. 6, be the log recording apparatus structural drawing in the embodiment of the invention three said a kind of device control processes.
Said log recording apparatus can comprise Command Line Parsing unit 61, newly-built or open unit 62, quantity of documents detecting unit 63 and log record unit 64.Wherein, Command Line Parsing unit 61 is used to read the daily record configuration file and resolves, and obtains journal file quantity threshold value preset in the daily record configuration file; Newly-built or open unit 62 and be used for newly-built journal file or open existing journal file; Whether the quantity that quantity of documents detecting unit 63 is used to detect the journal file of having created exceeds said journal file quantity threshold value; If exceed; Then delete according to presetting strategy; Quantity up to the said journal file of having created is less than or equal to said journal file quantity threshold value, triggers log record unit 64 again; Log record unit 64 is used for obtaining to treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in.
Preferably, in order to change the storing directory of journal file neatly, said Command Line Parsing unit 61 also is used for obtaining the preset journal file of said daily record configuration file and deposits the path.Accordingly, said device can also comprise: filename is preserved unit 65, be used to read said journal file and deposit journal file title of respectively having created in the path under, write down in the journal file title its date created of corresponding journal file; Sequencing according to creation-time is saved in each the journal file title that is read in the formation of journal file title successively.
Based on the formation of said journal file title, said newly-built or open unit 62 and further can comprise:
New document creation subelement is used for according to the newly-built journal file of current date and opens;
Ancient deed is opened subelement, is used to open existing journal file;
First judgment sub-unit is used to judge whether the formation of said journal file title is empty, if be empty, then triggers new document creation subelement; If be not empty, then trigger the date and compare subelement;
Date is subelement relatively, is used for extracting the formation of said journal file title and writes down the journal file title of date created the latest, and whether date created is identical with current date the latest to judge this, if different, then triggers new document creation subelement; If identical, then trigger second judgment sub-unit;
Second judgment sub-unit, be used to judge said record the latest date created the journal file title the size of corresponding journal file whether reach preset value, if reach, then trigger new document creation subelement; If do not reach, then trigger ancient deed and open subelement and open this journal file.
Based on the formation of said journal file title; Tactful deleted file below said quantity of documents detecting unit 63 can adopt: the journal file title and the corresponding journal file thereof of record earliest creation date in the formation of the said journal file title of circulation deletion, up to being less than or equal to said journal file quantity threshold value.
In addition, said log record unit 64 can obtain one earlier and treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in, trigger second judgment sub-unit then; Second judgment sub-unit judges that whether the said size of the journal file of recorded logs information of treating of record reaches preset value, if reach, then triggers new document creation subelement; If do not reach, then trigger log record unit 64 next bar of continuation acquisition and treat recorded logs information, and write down the said recorded logs information of treating of next bar.
Preferably; In order to realize more flexibly daily record rank configuration based on module; Said Command Line Parsing unit 61 also is used for obtaining the preset daily record level limit information of said daily record configuration file, and said daily record level limit information comprises the preset daily record level limit of corresponding each module.Accordingly; Said device can also comprise: daily record rank judging unit 66; Be used for judging whether the log information that module generates is put into message queue according to said daily record level limit information; If the daily record rank of the log information that module generates is lower than should the preset daily record level limit of module, then abandons this daily record, otherwise put into message queue.And said log record unit 64 obtains to treat recorded logs information from said message queue.
Preferably, said Command Line Parsing unit 61 also is used for obtaining the preset identification information that whether needs log of corresponding each module of daily record configuration file.Accordingly, said device can also comprise: whether the judging unit 67 that whether writes down, the log information that is used for generating according to said identification information judgment module the needs record, if desired, then triggers daily record rank judging unit 66; If do not need, then abandon this daily record.
In sum, the described log recording apparatus of present embodiment has been realized the automatic management and the maintenance of journal file quantity, has fundamentally avoided journal file to write the serious consequence that full hard disk causes industrial computer to crash; And, realized the set-up mode of daily record rank more flexibly, reduced the record of a large amount of garbages; And, can also change the storing directory of journal file neatly.
Based on above-mentioned log recording apparatus, the present invention also provides a kind of embodiment of semiconductor machining system.Said semiconductor machining system comprises semiconductor processing equipment and semiconductor control system; Wherein said semiconductor processing equipment specifically can be LED etching machine, PECVD etching machine etc.; Said semiconductor control system is used to control said semiconductor processing equipment; Also comprise log recording apparatus shown in Figure 6 in the said semiconductor control system, be used to write down the log information that semiconductor processing equipment produces when operation.Wherein, the detailed content about log recording apparatus can be not described in detail in this with reference to the description of above-mentioned Fig. 6.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device and system embodiment, because it is similar basically with method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
At last; Also need to prove; In this article; Relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint relation or the order that has any this reality between these entities or the operation.
More than to log recording method, Apparatus and system in a kind of device control process provided by the present invention; Carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (15)

1. the log recording method in the device control process is characterized in that, comprising:
Step 1 reads the daily record configuration file and resolves, and obtains journal file quantity threshold value preset in the said daily record configuration file;
Step 2, newly-built journal file or open existing journal file;
Step 3, whether the quantity that detects the journal file created exceeds said journal file quantity threshold value, if exceed, then deletes according to presetting strategy, is less than or equal to said journal file quantity threshold value up to the quantity of the said journal file of having created;
Step 4 obtains to treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in.
2. method according to claim 1 is characterized in that, said newly-built journal file or open before the existing journal file also comprises:
Obtain journal file preset in the said daily record configuration file and deposit the path;
Read said journal file and deposit under the path journal file corresponding log file name that each has been created, write down in the journal file title its date created of corresponding journal file;
Sequencing according to date created is saved in each the journal file title that is read in the formation of journal file title successively.
3. method according to claim 2 is characterized in that, said newly-built journal file or open existing journal file comprises:
Judge that whether the formation of said journal file title is empty, if be sky, then according to the newly-built journal file of current date and open; If be not empty, then,
Extract and write down the journal file title of date created the latest in the formation of said journal file title, whether date created is identical with current date the latest to judge this, if different, then according to the newly-built journal file of current date and open; If identical, then,
Judge said record the latest date created the journal file title the size of corresponding journal file whether reach preset value, if reach, then according to the newly-built journal file of current date and open; If do not reach, then open this journal file.
4. method according to claim 2 is characterized in that, deletes according to presetting strategy in the said step 3, comprising:
The journal file title and the corresponding journal file thereof of record earliest creation date in the formation of the said journal file title of circulation deletion.
5. according to claim 1 or 3 described methods, it is characterized in that said step 4 comprises:
Obtain one and treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in;
Said method also comprises: judge whether the said size of the journal file of recorded logs information of treating of record reaches preset value, if reach, then according to the newly-built journal file of current date and open, and return step 3; If do not reach, then return step 4, continue to obtain next bar and treat recorded logs information, and write down the said recorded logs information of treating of next bar.
6. method according to claim 1 is characterized in that, also comprises:
Obtain daily record level limit information preset in the said daily record configuration file, said daily record level limit information comprises the preset daily record level limit of corresponding each module;
Judge whether the log information that module generates is put into message queue according to said daily record level limit information; If the daily record rank of the log information that module generates is lower than should the preset daily record level limit of module; Then abandon this daily record, otherwise put into message queue;
Said step 4 obtains to treat recorded logs information from said message queue.
7. method according to claim 6 is characterized in that, saidly judges whether the log information that module generates is put into before the message queue according to daily record level limit information, also comprises:
Obtain the preset identification information that whether needs log of corresponding each module in the said daily record configuration file;
Whether the log information that generates according to said identification information judgment module the needs record, if desired, then continues to judge to daily record level limit that should module; If do not need, then abandon this daily record.
8. a log recording apparatus that is used for the device control process is characterized in that, comprising:
The Command Line Parsing unit is used to read the daily record configuration file and resolves preset journal file quantity threshold value in the acquisition daily record configuration file;
Newly-built or open the unit, be used for newly-built journal file or open existing journal file;
The quantity of documents detecting unit; Whether the quantity that is used to detect the journal file of having created exceeds said journal file quantity threshold value; If exceed, then delete according to presetting strategy, be less than or equal to said journal file quantity threshold value up to the quantity of the said journal file of having created;
The log record unit is used for obtaining to treat recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in.
9. device according to claim 8 is characterized in that:
Said Command Line Parsing unit also is used for obtaining the preset journal file of said daily record configuration file and deposits the path;
Then said device also comprises:
Filename is preserved the unit, be used to read said journal file and deposit journal file corresponding log file name of respectively having created in the path under, write down in the journal file title its date created of corresponding journal file; Sequencing according to creation-time is saved in each the journal file title that is read in the formation of journal file title successively.
10. device according to claim 9 is characterized in that, and is said newly-built or open the unit and comprise:
New document creation subelement is used for according to the newly-built journal file of current date and opens;
Ancient deed is opened subelement, is used to open existing journal file;
First judgment sub-unit is used to judge whether the formation of said journal file title is empty, if be empty, then triggers new document creation subelement; If be not empty, then trigger the date and compare subelement;
Date is subelement relatively, is used for extracting the formation of said journal file title and writes down the journal file title of date created the latest, and whether date created is identical with current date the latest to judge this, if different, then triggers new document creation subelement; If identical, then trigger second judgment sub-unit;
Second judgment sub-unit, be used to judge said record the latest date created the journal file title the size of corresponding journal file whether reach preset value, if reach, then trigger new document creation subelement; If do not reach, then trigger ancient deed and open subelement and open this journal file.
11. device according to claim 9 is characterized in that:
The journal file title and the corresponding journal file thereof of record earliest creation date in the formation of the said journal file title of said quantity of documents detecting unit circulation deletion are up to being less than or equal to said journal file quantity threshold value.
12. device according to claim 10 is characterized in that:
Said log record unit obtains one and treats recorded logs information, and with said treat that recorded logs information records said newly-built journal file or the existing journal file opened in, trigger second judgment sub-unit then;
Second judgment sub-unit judges that whether the said size of the journal file of recorded logs information of treating of record reaches preset value, if reach, then triggers new document creation subelement; If do not reach, then trigger log record unit next bar of continuation acquisition and treat recorded logs information, and write down the said recorded logs information of treating of next bar.
13. device according to claim 8 is characterized in that:
Said Command Line Parsing unit also is used for obtaining the preset daily record level limit information of said daily record configuration file, and said daily record level limit information comprises the preset daily record level limit of corresponding each module;
Then said device also comprises:
Daily record rank judging unit; Be used for judging whether the log information that module generates is put into message queue according to said daily record level limit information; If the daily record rank of the log information that module generates is lower than should the preset daily record level limit of module; Then abandon this daily record, otherwise put into message queue;
Said log record unit obtains to treat recorded logs information from said message queue.
14. device according to claim 13 is characterized in that:
Said Command Line Parsing unit also is used for obtaining the preset identification information that whether needs log of corresponding each module of said daily record configuration file;
Then said device also comprises:
Whether the judging unit that whether writes down, the log information that is used for generating according to said identification information judgment module the needs record, if desired, then triggers daily record rank judging unit; If do not need, then abandon this daily record.
15. a semiconductor machining system comprises semiconductor processing equipment and semiconductor control system, it is characterized in that, said semiconductor control system comprises any described log recording apparatus of claim 8-14.
CN2010105365935A 2010-11-04 2010-11-04 Method, device and system for recording logs in equipment control process Pending CN102467516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105365935A CN102467516A (en) 2010-11-04 2010-11-04 Method, device and system for recording logs in equipment control process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105365935A CN102467516A (en) 2010-11-04 2010-11-04 Method, device and system for recording logs in equipment control process

Publications (1)

Publication Number Publication Date
CN102467516A true CN102467516A (en) 2012-05-23

Family

ID=46071160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105365935A Pending CN102467516A (en) 2010-11-04 2010-11-04 Method, device and system for recording logs in equipment control process

Country Status (1)

Country Link
CN (1) CN102467516A (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023984A (en) * 2012-11-23 2013-04-03 青岛海信传媒网络技术有限公司 Terminal application server and application log filtering method thereof
CN103092745A (en) * 2013-01-22 2013-05-08 中兴通讯股份有限公司 Control method and control device of system log records
CN103645984A (en) * 2013-12-24 2014-03-19 山东中创软件工程股份有限公司 Method and device for optimizing logs
CN103838624A (en) * 2013-12-16 2014-06-04 浪潮电子信息产业股份有限公司 Log processing method based on Linux message queue
CN103905223A (en) * 2012-12-26 2014-07-02 腾讯科技(北京)有限公司 Data packet acquisition method, system and device
CN105260293A (en) * 2015-11-06 2016-01-20 Tcl集团股份有限公司 Output method, output device and terminal equipment of log information
CN105574096A (en) * 2015-12-10 2016-05-11 惠州Tcl移动通信有限公司 Method and system for obtaining, uploading and analyzing log information
CN105868340A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Log storage method and device
CN105956172A (en) * 2016-05-23 2016-09-21 深圳市硅格半导体股份有限公司 Log information storage method and apparatus
CN106126487A (en) * 2016-06-30 2016-11-16 天脉聚源(北京)传媒科技有限公司 A kind of journal file method for splitting and device
CN106326082A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Method and device for recording log in network system
CN106681998A (en) * 2015-11-05 2017-05-17 北京国双科技有限公司 Method and device for remotely storing logs
CN106815045A (en) * 2016-12-19 2017-06-09 苏州唐氏机械制造有限公司 The method that versions of data updates
CN107092552A (en) * 2017-03-10 2017-08-25 武汉斗鱼网络科技有限公司 A kind of blog management method and device
CN107526674A (en) * 2017-08-31 2017-12-29 郑州云海信息技术有限公司 A kind of method and apparatus of embedded system log recording
CN108153647A (en) * 2017-12-26 2018-06-12 广东欧珀移动通信有限公司 log processing method, device, terminal device and storage medium
CN108170595A (en) * 2017-12-25 2018-06-15 北京蓝海讯通科技股份有限公司 A kind of dump file generation method and data probe install and uninstall method
CN108399186A (en) * 2018-01-12 2018-08-14 联动优势科技有限公司 A kind of collecting method and device
CN108984118A (en) * 2018-06-26 2018-12-11 四川斐讯信息技术有限公司 A kind of log information saving method and system based on openwrt system flash subarea
CN109299045A (en) * 2018-12-17 2019-02-01 郑州云海信息技术有限公司 A kind of log storing method, device, equipment and readable storage medium storing program for executing
CN109885539A (en) * 2019-01-28 2019-06-14 南京邮电大学 A kind of log file management method
CN111064988A (en) * 2019-11-06 2020-04-24 视联动力信息技术股份有限公司 Log saving method and device
CN115543949A (en) * 2022-09-27 2022-12-30 北京北方华创微电子装备有限公司 Log processing method and semiconductor process equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815451A (en) * 2005-01-31 2006-08-09 华为技术有限公司 Log information management method and system
CN101056264A (en) * 2007-04-25 2007-10-17 华为技术有限公司 Traffic control method and service processing system
CN101093514A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Processing system for automated testing log

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815451A (en) * 2005-01-31 2006-08-09 华为技术有限公司 Log information management method and system
CN101056264A (en) * 2007-04-25 2007-10-17 华为技术有限公司 Traffic control method and service processing system
CN101093514A (en) * 2007-08-20 2007-12-26 中兴通讯股份有限公司 Processing system for automated testing log

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023984A (en) * 2012-11-23 2013-04-03 青岛海信传媒网络技术有限公司 Terminal application server and application log filtering method thereof
CN103023984B (en) * 2012-11-23 2015-05-20 青岛海信传媒网络技术有限公司 Terminal application server and application log filtering method thereof
CN103905223A (en) * 2012-12-26 2014-07-02 腾讯科技(北京)有限公司 Data packet acquisition method, system and device
CN103905223B (en) * 2012-12-26 2018-01-19 腾讯科技(北京)有限公司 Packet capture mthods, systems and devices
CN103092745A (en) * 2013-01-22 2013-05-08 中兴通讯股份有限公司 Control method and control device of system log records
WO2014114100A1 (en) * 2013-01-22 2014-07-31 中兴通讯股份有限公司 Control method and device for system log recording
CN103092745B (en) * 2013-01-22 2016-04-13 中兴通讯股份有限公司 The control method of system journal record and device
US9965491B2 (en) 2013-01-22 2018-05-08 Zte Corporation Method and device for recording system log
CN103838624A (en) * 2013-12-16 2014-06-04 浪潮电子信息产业股份有限公司 Log processing method based on Linux message queue
CN103645984A (en) * 2013-12-24 2014-03-19 山东中创软件工程股份有限公司 Method and device for optimizing logs
CN103645984B (en) * 2013-12-24 2016-05-18 山东中创软件工程股份有限公司 log processing method and device
CN106326082B (en) * 2015-06-16 2020-10-16 南京中兴新软件有限责任公司 Method and device for recording log in network system
CN106326082A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Method and device for recording log in network system
CN106681998A (en) * 2015-11-05 2017-05-17 北京国双科技有限公司 Method and device for remotely storing logs
CN105260293B (en) * 2015-11-06 2019-04-16 Tcl集团股份有限公司 Output method, device and the terminal device of log information
CN105260293A (en) * 2015-11-06 2016-01-20 Tcl集团股份有限公司 Output method, output device and terminal equipment of log information
CN105574096A (en) * 2015-12-10 2016-05-11 惠州Tcl移动通信有限公司 Method and system for obtaining, uploading and analyzing log information
CN105868340A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Log storage method and device
CN105956172A (en) * 2016-05-23 2016-09-21 深圳市硅格半导体股份有限公司 Log information storage method and apparatus
CN105956172B (en) * 2016-05-23 2019-08-13 深圳市硅格半导体有限公司 The storage method and device of log information
CN106126487A (en) * 2016-06-30 2016-11-16 天脉聚源(北京)传媒科技有限公司 A kind of journal file method for splitting and device
CN106815045A (en) * 2016-12-19 2017-06-09 苏州唐氏机械制造有限公司 The method that versions of data updates
CN107092552A (en) * 2017-03-10 2017-08-25 武汉斗鱼网络科技有限公司 A kind of blog management method and device
CN107092552B (en) * 2017-03-10 2020-09-04 武汉斗鱼网络科技有限公司 Log management method and device
CN107526674A (en) * 2017-08-31 2017-12-29 郑州云海信息技术有限公司 A kind of method and apparatus of embedded system log recording
CN108170595A (en) * 2017-12-25 2018-06-15 北京蓝海讯通科技股份有限公司 A kind of dump file generation method and data probe install and uninstall method
CN108153647A (en) * 2017-12-26 2018-06-12 广东欧珀移动通信有限公司 log processing method, device, terminal device and storage medium
CN108153647B (en) * 2017-12-26 2021-08-06 Oppo广东移动通信有限公司 Log processing method and device, terminal equipment and storage medium
CN108399186A (en) * 2018-01-12 2018-08-14 联动优势科技有限公司 A kind of collecting method and device
CN108984118A (en) * 2018-06-26 2018-12-11 四川斐讯信息技术有限公司 A kind of log information saving method and system based on openwrt system flash subarea
CN109299045A (en) * 2018-12-17 2019-02-01 郑州云海信息技术有限公司 A kind of log storing method, device, equipment and readable storage medium storing program for executing
CN109299045B (en) * 2018-12-17 2022-02-18 郑州云海信息技术有限公司 Log storage method, device and equipment and readable storage medium
CN109885539A (en) * 2019-01-28 2019-06-14 南京邮电大学 A kind of log file management method
CN111064988A (en) * 2019-11-06 2020-04-24 视联动力信息技术股份有限公司 Log saving method and device
CN115543949A (en) * 2022-09-27 2022-12-30 北京北方华创微电子装备有限公司 Log processing method and semiconductor process equipment
CN115543949B (en) * 2022-09-27 2023-09-08 北京北方华创微电子装备有限公司 Log processing method and semiconductor process equipment

Similar Documents

Publication Publication Date Title
CN102467516A (en) Method, device and system for recording logs in equipment control process
CN102110146B (en) Key-value storage-based distributed file system metadata management method
US9672267B2 (en) Hybrid data management system and method for managing large, varying datasets
US20180373722A1 (en) System and method for data classification using machine learning during archiving
CN101102281B (en) Data processing method for reporting a large number of data in mobile communication system
MX2009000589A (en) Data processing over very large databases.
CN102012933B (en) Distributed file system and method for storing data and providing services by utilizing same
CN102930060B (en) A kind of method of database quick indexing and device
CN103631940A (en) Data writing method and data writing system applied to HBASE database
CN108319543A (en) A kind of asynchronous processing method and its medium, system of computer log data
CN101650741A (en) Method and system for updating index of distributed full-text search in real time
US20140025899A1 (en) Efficiently Updating and Deleting Data in a Data Storage System
CN103077241A (en) Method for loading data in parallel after splitting files
CN105787037A (en) Repeated data deleting method and device
CN111367991B (en) MongoDB data real-time synchronization method and system based on message queue
CN104239438A (en) File information storage method and file information read-write method based on separate storage
CN104199901A (en) Method for batch merging of hbase table regions
US20070179937A1 (en) Apparatus, method, and computer program product for extracting structured document
CN103064779A (en) Method for processing log information rapidly
KR101666440B1 (en) Data processing method in In-memory Database System based on Circle-Queue
EP4044031A1 (en) Cloud orchestration system and method based on read-write separation and auto-scaling
CN102541982A (en) Method for organizing and accessing metadata file log
CN110019169B (en) Data processing method and device
CN107577809A (en) Offline small documents processing method and processing device
CN115374065B (en) File cleaning method and system based on cloud platform log record monitoring

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120523