CN101425034A - Log recording method and log system - Google Patents
Log recording method and log system Download PDFInfo
- Publication number
- CN101425034A CN101425034A CNA2008101457061A CN200810145706A CN101425034A CN 101425034 A CN101425034 A CN 101425034A CN A2008101457061 A CNA2008101457061 A CN A2008101457061A CN 200810145706 A CN200810145706 A CN 200810145706A CN 101425034 A CN101425034 A CN 101425034A
- Authority
- CN
- China
- Prior art keywords
- log
- journal entries
- manager
- write operation
- registration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a kind of log recording method and log system.Described method comprises: the order of time-delay log record device receiving record daily record, carry journal entries in the described order; Time-delay log record device stores the journal entries in the described order in the registration log manager into, according to imposing a condition the stored log clauses and subclauses is carried out write operation by described registration log manager.Accordingly, the embodiment of the invention provides a kind of log system, comprising: time-delay log record device, be used for the order of receiving record daily record, and carry journal entries in the described order, the journal entries in the described order is stored in the registration log manager; The registration log manager is used to store the journal entries that described time-delay log record device transmits, and according to imposing a condition the stored log clauses and subclauses is carried out write operation.The technical scheme that the embodiment of the invention provides can reduce the influence to regular traffic when carrying out log record, improve the execution speed of regular traffic.
Description
Technical field
The present invention relates to computer application field, be specifically related to a kind of log recording method and log system.
Background technology
In computer technology was used, daily record (log) played crucial effect.Daily record is used at computer program some information being carried out record, comprises prompting, warning and error message etc., and these information can be used for the operational process of Analytical Computer Program.Therefore, in computing machine or other equipment, generally all be provided with log system and carry out log record work specially.
Contain log manager in the log system, when the user sends when writing the daily record order, log manager provides a log record device (Logger) for the user, can directly write various daily records destinations such as journal file, control desk or database to various other journal entries of level by this log record device.
With the explanation of Java applicating example, itself has journal function Java language, and this function setting is in the java.util.logging bag.During Java used, the recording mode of log system was real-time, that is to say, after the order that receives the log that the user sends, the normal program implementation of stopping immediately, the Logger opening entry daily record that provides by log manager, after log record was intact, program was further down carried out.Illustrate, for example the thread of program run is:
Invoke code 1......;
Logger.log (" daily record "); Write the order of daily record.
Invoke code 2......;
The daily record process of writing of Logger and user's invoke code are that order is carried out in a thread, write log code and execute just and can run to invoke code 2, and after calling the code of writing daily record and returning, the expression daily record has been write down and finished.
In research and practice process to prior art, the inventor finds that there is following problem in prior art:
The log recording method of prior art is to adopt the real time record mode, and other programs need be waited for and could continue after log record is finished to carry out, therefore can cause the obstruction of regular traffic when log.And it is serial that the characteristics of log system itself require the record of daily record, in order record item by item.If the program that existing Java log system is applied to a plurality of threads of concurrent program is wanted log simultaneously, and the recording process of every daily record can not concurrent processing, this just causes a certain moment can only have a thread execution journal to operate, when its log, other threads also must be waited for, the time of this wait, in and the program that log record is frequent big at concurrency, often the time that consumes than log itself is also many.
In a word, the log recording method of prior art can impact regular traffic owing to adopt the real time record mode.
Summary of the invention
The technical matters that the embodiment of the invention will solve provides a kind of log recording method and log system, can reduce the influence to regular traffic when carrying out log record, improves the execution speed of regular traffic.
For solving the problems of the technologies described above, embodiment provided by the present invention is achieved through the following technical solutions:
The embodiment of the invention provides a kind of log recording method, comprising: the order of time-delay log record device receiving record daily record, carry journal entries in the described order; Time-delay log record device stores the journal entries in the described order in the registration log manager into, according to imposing a condition the stored log clauses and subclauses is carried out write operation by described registration log manager.
Preferably, further comprise before the order of described time-delay log record device receiving record daily record: by setting, register new log manager and replace original log manager, obtain registering log manager the log manager attribute; Described registration log manager is created time-delay log record device, and described time-delay log record device is offered user input commands.
Preferably, describedly according to imposing a condition the stored log clauses and subclauses are carried out write operation and be specially: generate thread by described registration log manager by the registration log manager, according to imposing a condition the stored log clauses and subclauses are written to the destination by described thread, and with the completed journal entries deletion of write operation.
Preferably, described imposing a condition is specially: the time sequencing of journal entries storage.
Preferably, described time-delay log record device stores the journal entries in the described order in the registration log manager into and is specially: time-delay log record device stores the journal entries in the described order in the journal entries tabulation of registration log manager into.
Preferably, described registration log manager checks whether there is the journal entries of not carrying out write operation when knowing that application server receives order out of service, if exist, then will not carry out the journal entries of write operation and carries out write operation.
Preferably, further comprise after the order of described time-delay log record device receiving record daily record: judge whether the journal entries in the described order reaches the setting rank, if, directly journal entries is carried out write operation, if not, carry out the step that the journal entries in the described order is stored into the registration log manager.
The embodiment of the invention provides a kind of log system, comprising: time-delay log record device, be used for the order of receiving record daily record, and carry journal entries in the described order, the journal entries in the described order is stored in the registration log manager; The registration log manager is used to store the journal entries that described time-delay log record device transmits, and according to imposing a condition the stored log clauses and subclauses is carried out write operation.
Preferably, described registration log manager is to obtain by the log manager attribute is provided with post-registration; User input commands is created and offered to described time-delay log record device by described registration log manager.
Preferably, described registration log manager comprises: storage unit is used to be provided with the journal entries that the described time-delay log record of journal entries list storage device transmits; Processing unit is used to generate thread, according to imposing a condition the stored log clauses and subclauses is written to the destination by described thread, and with the completed journal entries deletion of write operation.
Preferably, described registration log manager also comprises: the condition setting unit is used for described imposing a condition is set to the time sequencing of journal entries storage.
Preferably, described registration log manager also comprises: inspection unit, be used for when knowing that application server receives order out of service, check whether described storage unit exists the journal entries of not carrying out write operation, if exist, the journal entries of then notifying described processing unit will not carry out write operation is carried out write operation.
From technique scheme as can be seen, the log record device that embodiment of the invention technical scheme provides, after the order of the log that receives user's input, not that journal entries in directly will ordering is carried out write operation, but be stored in the registration log manager, by the registration log manager stored log record is carried out write operation.Like this, just do not need to wait for and just carry out other regular traffic programs after the daily record write operation is finished, thereby can reduce influence, improve the execution speed of regular traffic regular traffic.And for having the situation that a large amount of daily records write demand and have the operation of a large amount of concurrent programs, each concurrent program does not need to wait for that daily record has been write could continue execution, so just can improve the overall execution speed of program greatly.
Further, in the embodiment of the invention technical scheme, described imposing a condition can be provided with as required, for example is set to the time sequencing of journal entries storage.
In addition, also increased a testing mechanism, promptly when knowing that application server receives order out of service, check and whether have the journal entries of not carrying out write operation, if exist, then will not carry out the journal entries of write operation and carry out write operation, write journal entries thereby prevent to omit.
Description of drawings
Fig. 1 is the embodiment of the invention one a log recording method process flow diagram;
Fig. 2 is the embodiment of the invention two log recording method process flow diagrams;
Fig. 3 is the embodiment of the invention three log recording method process flow diagrams;
Fig. 4 is an embodiment of the invention log system structural representation.
Embodiment
The embodiment of the invention provides a kind of log recording method, can reduce the influence to regular traffic, improves the execution speed of regular traffic.
Embodiment of the invention technical scheme mainly provides a new log record device, after the order of the log that receives user's input, not that journal entries in directly will ordering is carried out write operation, but be stored in the registration log manager, for example exist in the journal entries tabulation of log manager, the stored log record is carried out write operation by the registration log manager.Like this, just do not need to wait for and just carry out other regular traffic programs after the daily record write operation is finished, thereby can reduce influence, improve the execution speed of regular traffic regular traffic.
The embodiment of the invention is to illustrate with the scene that log system is applied to application server.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Seeing also Fig. 1, is the embodiment of the invention one log recording method process flow diagram, comprising:
The order of step 101, the daily record of time-delay log record device receiving record is carried journal entries in the described order;
User input commands is created and offered to time-delay log record device by the registration log manager.The registration log manager is to replace the entity of original log manager in the system of being registered to, and than original log manager, the registration log manager can provide an independent thread to be used for the write operation of special disposal journal entries.After application server started, the registration log manager in the log system also can start.
When the user gets access to time-delay log record device,, wherein carry the journal entries that to write to the order of its input log.Time-delay log record device receives the order of user's input.
After time-delay log record device receives the order of user's input, do not carry out write operation to journal entries, but the journal entries of carrying in will ordering stores in the registration log manager, return immediately then, make user's program can continue downward execution, and need not to wait for that the write operation of journal entries really finishes.
The registration log manager can be provided with the journal entries tabulation, is used to store the journal entries of time-delay log record device transmission.Certainly, also can store by other data storage methods.
The registration log manager contains an independent thread, and after application server started, this thread was monitored the journal entries in the journal entries immediately, according to imposing a condition the stored log clauses and subclauses is carried out write operation, is about to the stored log clauses and subclauses and is written to the destination.After the write operation of a journal entries in the journal entries tabulation is finished,, continue again next journal entries is carried out write operation with this journal entries deletion.
Described here imposes a condition, and for example can be the time sequencing of journal entries storage, or other modes.
Can find, the technical scheme of present embodiment, because the order of time-delay log record device receiving record daily record, it or not the write operation of carrying out the journal entries of carrying in the order, but journal entries is stored in the registration log manager, according to imposing a condition the stored log clauses and subclauses are carried out write operation by described registration log manager.Like this, just do not need to wait for and just carry out other regular traffic programs after the daily record write operation is finished, thereby can reduce influence, improve the execution speed of regular traffic regular traffic.And for having the situation that a large amount of daily records write demand and have the operation of a large amount of concurrent programs, each concurrent program does not need to wait for that daily record has been write could continue execution, so just can improve the overall execution speed of program greatly.
Seeing also Fig. 2, is the embodiment of the invention two log recording method process flow diagrams.In embodiment two, will introduce the idiographic flow of log record in more detail.Among the embodiment two with Java applicating example explanation but be not limited to this.
As shown in Figure 2, comprising:
The user calls standard application program interface, and (Application Programming Interface API) requires to obtain Logger and uses.
The Apusic log manager is in the embodiment of the invention to be provided is registered to the entity that is used for the original log manager of replacement system in the system, its function changes to some extent, can provide an independent thread to be used for the write operation of special disposal journal entries.
Specifically can the Apusic log manager be registered to the Java language system be used for replacing the original log manager of Java language system by log manager attribute (being the java.util.logging.manager attribute) is set in the Java language system.
The registration that the java.util.logging.manager attribute carries out the Apusic log manager is set, dual mode can be arranged:
Add that attribute is provided with parameter when 1) starting the java program:
The manager class name that-Djava.util.logging.manager=will be provided with, for example:
Java-Djava.util.logging.manager=
Com.apusic.logging.manager.ServerLogManager com.apusic.server.Main; Expression registration Apusic log manager is replaced original log manager.
2) add that in program attribute is provided with parameter, for example, be provided with by code in the beginning of program:
System.setProperty("java.util.logging.manager",
" com.apusic.logging.manager.ServerLogManager "); Expression registration Apusic log manager is replaced original log manager.
After adopting the Apusic log manager to replace the log manager of Java language system self, relevant issues are controlled by the Apusic log manager, so the Apusic log manager can receive user's request.
It is LazyLogger that the Apusic log manager is created a brand-new Logger, LazyLogger is the java.util.logging.Logger that inherits from standard, store in the journal entries tabulation of Apusic log manager but the action that LazyLogger carries out is the journal entries in the order that is set to receive, rather than be set to directly journal entries be write the destination.
The user gets access to after the LazyLogger, to the LazyLogger input command, requires to write out certain journal entries.After LazyLogger receives user's order, directly journal entries is not write the destination, but the journal entries that it is written in the Apusic log manager is tabulated, return at once then, make user's regular traffic program can continue downward execution, and need not to wait for that journal entries really is written to the destination.
The Apusic log manager generates the thread that responsible daily record writes, and this thread is monitored the journal entries tabulation in the Apusic log manager in real time, according to imposing a condition the stored log clauses and subclauses is carried out write operation.
The Apusic log manager generates a thread, and code for example is set:
MyThread?t=new?MyThread();
t.start();
Like this, thread t has just brought into operation.
Described imposing a condition can be provided with as required.For example the thread of Sheng Chenging is according to the time sequencing of journal entries storage, to depositing the journal entries of this journal entries tabulation earlier in, carry out actual write operation, after being written to the destination, these clauses and subclauses of deletion continue next journal entries is carried out write operation again from tabulation.
Need to prove that LazyLogger can also carry out respective handling according to the rank of journal entries in the above-mentioned steps.The rank of journal entries is meant the order of severity of journal entries, for example can be divided into: general, warning, mistake, serious etc.Rank for journal entries reaches a certain setting rank and above so, supposes rank for " seriously ", and then LazyLogger can take the mode that writes at once, rather than stores journal entries into and tabulate, and delaying time writes.Like this, can guarantee the real-time of some journal entries, but this processing behavior is optionally, requirement is not very strong because the characteristics of log system are real-time, for most of journal entries, does not need such real-time.
Also need to prove, above-mentioned steps 204 and 205 is parallel processings, be that LazyLogger stores various journal entries in the Apusic log manager journal entries tabulation time in the step 204, the Apusic log manager is also constantly being carried out write operation with the journal entries in the journal entries tabulation in the step 205.
Can find, the technical scheme of present embodiment, register the Apusic log manager and replaced original log manager, and create a LazyLogger by the Apusic log manager, after the order of the log of this LazyLogger reception user input, it or not the write operation of carrying out the journal entries of carrying in the order, but journal entries is stored in the journal entries tabulation of Apusic log manager, according to imposing a condition the stored log clauses and subclauses are carried out write operation by described Apusic log manager.Like this, just do not need to wait for and just carry out other regular traffic programs after the daily record write operation is finished, thereby can reduce influence, improve the execution speed of regular traffic regular traffic.And for having the situation that a large amount of daily records write demand and have the operation of a large amount of concurrent programs, each concurrent program does not need to wait for that daily record has been write could continue execution, so just can improve the overall execution speed of program greatly.In addition,, do not need to change original mode of operation and custom, thereby provide reasonable user experience for the user from user perspective.
Seeing also Fig. 3, is the embodiment of the invention three log recording method process flow diagrams.Embodiment three compares with embodiment two, and mainly being has increased by one to prevent to omit the step that writes journal entries.
As shown in Figure 3, comprising:
The user calls standard application program interface API, requires to obtain Logger and uses.
The Apusic log manager is in the embodiment of the invention to be provided is registered to the entity that is used for the original log manager of replacement system in the system, its function changes to some extent, can provide an independent thread to be used for the write operation of special disposal journal entries.
Specifically can the Apusic log manager be registered to the Java language system be used for replacing the original log manager of Java language system by log manager attribute (being the java.util.logging.manager attribute) is set in the Java language system.
The registration that the java.util.logging.manager attribute carries out the Apusic log manager is set, dual mode can be arranged, specifically can consult the narration in the foregoing description two.
After adopting the Apusic log manager to replace the log manager of Java language system self, relevant issues are controlled by the Apusic log manager, so the Apusic log manager can receive user's request.
It is LazyLogger that the Apusic log manager is created a brand-new Logger, LazyLogger is the java.util.logging.Logger that inherits from standard, store in the journal entries tabulation of Apusic log manager but the action that LazyLogger carries out is the journal entries in the order that is set to receive, rather than be set to directly journal entries be write the destination.
The user gets access to after the LazyLogger, to the LazyLogger input command, requires to write out certain journal entries.After LazyLogger receives user's order, directly journal entries is not write the destination, but the journal entries that it is written in the Apusic log manager is tabulated, return at once then and make user's regular traffic program can continue downward execution, and need not to wait for that journal entries really is written to the destination.
The Apusic log manager generates the thread that responsible daily record writes, and this thread is monitored the journal entries tabulation in the Apusic log manager in real time, according to imposing a condition the stored log clauses and subclauses is carried out write operation.
Described imposing a condition can be provided with as required.For example the thread of Sheng Chenging is for example according to the time sequencing of journal entries storage, to depositing the journal entries of this journal entries tabulation earlier in, carry out actual write operation, after being written to the destination, these clauses and subclauses of deletion continue next journal entries is carried out write operation again from tabulation.
Need to prove that LazyLogger can also carry out respective handling according to the rank of journal entries in the above-mentioned steps.Rank for journal entries reaches a certain setting rank and above, supposes rank for " seriously ", and then LazyLogger can take the mode that writes at once, rather than stores journal entries into and tabulate, and delaying time writes.Like this, can guarantee the real-time of some journal entries, but this processing behavior is optional.
Also need to prove, above-mentioned steps 304 and 305 is parallel processings, be that LazyLogger stores various journal entries in the Apusic log manager journal entries tabulation time in the step 304, the Apusic log manager is also constantly being carried out write operation with the journal entries in the journal entries tabulation in the step 305.
Log system is to operate in the application server, when the customer requirements application server is out of service, application server need carry out a series of procedure operation just can be finally out of service, the Apusic log manager knows that application server prepares when out of service, to require LazyLogger to stop journal entries being stored in the journal entries tabulation, and check journal entries tabulation immediately, determine whether also to exist untreated journal entries, if exist, then continue untreated journal entries is write the destination, then termination routine.Like this, just guarantee that not having the journal entries omission has carried out write operation.
Can find that the technical scheme of present embodiment on the basis of the beneficial effect with embodiment two, further by increasing a treatment step, can guarantee not have the journal entries omission and carry out write operation, reaches better effect.
Foregoing describes the log recording method of the embodiment of the invention in detail, and corresponding, the embodiment of the invention provides a kind of log system.
Seeing also Fig. 4, is embodiment of the invention log system structural representation.
As shown in Figure 4, log system comprises: time-delay log record device 41, registration log manager 42.
Time-delay log record device 41 is used for the order of receiving record daily record, carries journal entries in the described order, and the journal entries in the described order is stored in the registration log manager 42.
Registration log manager 42 is used to store the journal entries that described time-delay log record device 41 transmits, and according to imposing a condition the stored log clauses and subclauses is carried out write operation.
Described registration log manager 42 is to obtain by the log manager attribute is provided with post-registration; User input commands is created and offered to described time-delay log record device 41 by described registration log manager 42.Registration log manager 42 is to replace the entity of original log manager in the system of being registered to, and than original log manager, registration log manager 42 can provide an independent thread to be used for the write operation of special disposal journal entries.After application server started, the registration log manager 42 in the log system also can start.Registration log manager 42 is created brand-new log record device log record device 41 of promptly delaying time, time-delay log record device 41 is the java.util.logging.Logger that inherit from standard, store in the journal entries tabulation of registration log manager 42 but the action of carrying out is the journal entries in the order that is set to receive, rather than be set to directly journal entries be write the destination.Certainly, other also can be set again carry out action, for example the rank for journal entries reaches a certain setting rank and above, supposes that rank is " seriously ", then takes the mode that writes at once.
Described registration log manager 42 comprises: storage unit 421, processing unit 422.
Storage unit 421 is used to be provided with the journal entries that the described time-delay log record of journal entries list storage device 41 transmits.Certainly, also can store by other data storage methods.
Processing unit 422 is used to generate thread, according to imposing a condition the stored log clauses and subclauses is written to the destination by described thread, and with the completed journal entries deletion of write operation.Processing unit 422 contains an independent thread, and after application server started, this thread was monitored the journal entries in the journal entries immediately, according to imposing a condition the stored log clauses and subclauses is carried out write operation, is about to the stored log clauses and subclauses and is written to the destination.After the write operation of a journal entries in the journal entries tabulation is finished,, continue again next journal entries is carried out write operation with this journal entries deletion.
Described registration log manager 42 also comprises: condition setting unit 423.
Condition setting unit 423 is used for being set to imposing a condition the time sequencing of journal entries storage.
When the time sequencing that imposes a condition to journal entries storage, 422 pairs of processing units deposit the journal entries of this journal entries tabulation earlier in, carry out actual write operation, after being written to the destination, these clauses and subclauses of deletion continue next journal entries is carried out write operation again from tabulation.
Described registration log manager 42 also comprises: inspection unit 424.
Inspection unit 424, be used for when knowing that application server receives order out of service, check whether described storage unit 421 exists the journal entries of not carrying out write operation, if exist, the journal entries of then notifying described processing unit 422 will not carry out write operation is carried out write operation.
In sum, embodiment of the invention technical scheme provides a new log record device, after the order of the log that receives user's input, not that journal entries in directly will ordering is carried out write operation, but be stored in the registration log manager, by the registration log manager stored log record is carried out write operation.Like this, just do not need to wait for and just carry out other regular traffic programs after the daily record write operation is finished, thereby can reduce influence, improve the execution speed of regular traffic regular traffic.And for having the situation that a large amount of daily records write demand and have the operation of a large amount of concurrent programs, each concurrent program does not need to wait for that daily record has been write could continue execution, so just can improve the overall execution speed of program greatly.
Further, in the embodiment of the invention technical scheme, described imposing a condition can be provided with as required, for example is set to the time sequencing of journal entries storage.
In addition, also increased a testing mechanism, promptly when knowing that application server receives order out of service, check and whether have the journal entries of not carrying out write operation, if exist, then will not carry out the journal entries of write operation and carry out write operation, write journal entries thereby prevent to omit.
The present invention can be used for numerous general or special purpose computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise distributed computing environment of above any system or equipment or the like.In addition, the present invention can also describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, by by communication network connected teleprocessing equipment execute the task.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
More than a kind of log recording method and log system that the embodiment of the invention provided are described in detail, used specific case herein 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 all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (12)
1, a kind of log recording method is characterized in that, comprising:
The order of time-delay log record device receiving record daily record is carried journal entries in the described order;
Time-delay log record device stores the journal entries in the described order in the registration log manager into, according to imposing a condition the stored log clauses and subclauses is carried out write operation by described registration log manager.
2, log recording method according to claim 1 is characterized in that:
Further comprise before the order of described time-delay log record device receiving record daily record:
By setting to the log manager attribute, register new log manager and replace original log manager, obtain registering log manager;
Described registration log manager is created time-delay log record device, and described time-delay log record device is offered user input commands.
3, log recording method according to claim 1 and 2 is characterized in that:
Describedly according to imposing a condition the stored log clauses and subclauses are carried out write operation and are specially by the registration log manager:
Generate thread by described registration log manager, according to imposing a condition the stored log clauses and subclauses are written to the destination by described thread, and with the completed journal entries deletion of write operation.
4, log recording method according to claim 3 is characterized in that:
Described imposing a condition is specially: the time sequencing of journal entries storage.
5, log recording method according to claim 1 and 2 is characterized in that:
Described time-delay log record device stores the journal entries in the described order in the registration log manager into and is specially:
Time-delay log record device stores the journal entries in the described order in the journal entries tabulation of registration log manager into.
6, log recording method according to claim 1 and 2 is characterized in that, also comprises:
Described registration log manager checks whether there is the journal entries of not carrying out write operation when knowing that application server receives order out of service, if exist, the journal entries of not carrying out write operation is carried out write operation.
7, log recording method according to claim 1 and 2 is characterized in that:
Further comprise after the order of described time-delay log record device receiving record daily record:
Judge whether the journal entries in the described order reaches the setting rank, if, directly journal entries is carried out write operation, if not, carry out the step that the journal entries in the described order is stored into the registration log manager.
8, a kind of log system is characterized in that, comprising:
Time-delay log record device is used for the order of receiving record daily record, carries journal entries in the described order, and the journal entries in the described order is stored in the registration log manager;
The registration log manager is used to store the journal entries that described time-delay log record device transmits, and according to imposing a condition the stored log clauses and subclauses is carried out write operation.
9, log system according to claim 8 is characterized in that:
Described registration log manager is to obtain by the log manager attribute is provided with post-registration;
User input commands is created and offered to described time-delay log record device by described registration log manager.
10, log system according to claim 8 is characterized in that, described registration log manager comprises:
Storage unit is used to be provided with the journal entries that the described time-delay log record of journal entries list storage device transmits;
Processing unit is used to generate thread, according to imposing a condition the stored log clauses and subclauses is written to the destination by described thread, and with the completed journal entries deletion of write operation.
11, log system according to claim 10 is characterized in that, described registration log manager also comprises:
The condition setting unit is used for described imposing a condition is set to the time sequencing of journal entries storage.
According to claim 10 or 11 described log systems, it is characterized in that 12, described registration log manager also comprises:
Inspection unit is used for when knowing that application server receives order out of service, checks whether described storage unit exists the journal entries of not carrying out write operation, if exist, the journal entries of then notifying described processing unit will not carry out write operation is carried out write operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101457061A CN101425034A (en) | 2008-08-11 | 2008-08-11 | Log recording method and log system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008101457061A CN101425034A (en) | 2008-08-11 | 2008-08-11 | Log recording method and log system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101425034A true CN101425034A (en) | 2009-05-06 |
Family
ID=40615666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008101457061A Pending CN101425034A (en) | 2008-08-11 | 2008-08-11 | Log recording method and log system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101425034A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095491A (en) * | 2012-12-30 | 2013-05-08 | 山东中创软件商用中间件股份有限公司 | Log service processing method and log service processing device |
CN103927252A (en) * | 2014-04-18 | 2014-07-16 | 安徽科大讯飞信息科技股份有限公司 | Cross-component log recording method, device and system |
CN108287777A (en) * | 2017-12-27 | 2018-07-17 | 山东浪潮通软信息科技有限公司 | A kind of method and device of record log |
CN109358904A (en) * | 2012-11-26 | 2019-02-19 | 谷歌有限责任公司 | The concentration distribution of application program analysis |
CN109447800A (en) * | 2018-10-19 | 2019-03-08 | 中国银行股份有限公司 | A kind of log recording method, device and electronic equipment |
-
2008
- 2008-08-11 CN CNA2008101457061A patent/CN101425034A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109358904A (en) * | 2012-11-26 | 2019-02-19 | 谷歌有限责任公司 | The concentration distribution of application program analysis |
CN109358904B (en) * | 2012-11-26 | 2022-05-31 | 谷歌有限责任公司 | Centralized distribution of application analytics |
CN103095491A (en) * | 2012-12-30 | 2013-05-08 | 山东中创软件商用中间件股份有限公司 | Log service processing method and log service processing device |
CN103095491B (en) * | 2012-12-30 | 2016-08-24 | 山东中创软件商用中间件股份有限公司 | A kind of log services processing method and processing device |
CN103927252A (en) * | 2014-04-18 | 2014-07-16 | 安徽科大讯飞信息科技股份有限公司 | Cross-component log recording method, device and system |
CN108287777A (en) * | 2017-12-27 | 2018-07-17 | 山东浪潮通软信息科技有限公司 | A kind of method and device of record log |
CN109447800A (en) * | 2018-10-19 | 2019-03-08 | 中国银行股份有限公司 | A kind of log recording method, device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110865888B (en) | Resource loading method and device, server and storage medium | |
US7974939B2 (en) | Processing model-based commands for distributed applications | |
Russinovich et al. | Windows internals: including Windows server 2008 and Windows Vista | |
US9424160B2 (en) | Detection of data flow bottlenecks and disruptions based on operator timing profiles in a parallel processing environment | |
CN109902255B (en) | Page mixed browsing record generation method, device, equipment and storage medium | |
CN110472102A (en) | A kind of data processing method, device, equipment and storage medium | |
CN111414407A (en) | Data query method and device of database, computer equipment and storage medium | |
CN103023984B (en) | Terminal application server and application log filtering method thereof | |
CN109597640B (en) | Account management method, device, equipment and medium for application program | |
CN113254445B (en) | Real-time data storage method, device, computer equipment and storage medium | |
CN101425034A (en) | Log recording method and log system | |
CN108304267A (en) | The multi-source data of highly reliable low-resource expense draws the method for connecing | |
CN107480074A (en) | A kind of caching method, device and electronic equipment | |
CN103020003A (en) | Multi-core program determinacy replay-facing memory competition recording device and control method thereof | |
CN106326129A (en) | Program abnormity information generating method and device | |
CN115455058A (en) | Cache data processing method and device, computer equipment and storage medium | |
CN103034577A (en) | Method and device for positioning slow shutdown | |
US10579446B2 (en) | Per-request event detection to improve request-response latency | |
US20130346908A1 (en) | Late instantiation of dependent objects | |
CN104778087B (en) | A kind of information processing method and information processing unit | |
CN113867834A (en) | Debugging plug-in calling method and device and computer readable storage medium | |
US9497253B2 (en) | Authorization review system | |
CN114385368A (en) | Method and device for flashing pre-written log | |
US7895259B2 (en) | Method for preventing use of multiple application instances | |
WO2021096346A1 (en) | A computer-implemented system for management of container logs and its method thereof |
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 |
Open date: 20090506 |