CN101515245A - Operation log recording method and system - Google Patents
Operation log recording method and system Download PDFInfo
- Publication number
- CN101515245A CN101515245A CNA2008100653892A CN200810065389A CN101515245A CN 101515245 A CN101515245 A CN 101515245A CN A2008100653892 A CNA2008100653892 A CN A2008100653892A CN 200810065389 A CN200810065389 A CN 200810065389A CN 101515245 A CN101515245 A CN 101515245A
- Authority
- CN
- China
- Prior art keywords
- operation log
- content
- rnc
- identification
- log
- 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 invention discloses an operation log recording method, which comprises the following steps: setting a configuration library for storing the configuration information of an operation log type; acquiring the operation information comprising the operation log type, an operator and an operated object mark; calling a data access component, acquiring the configuration information of the operation log type from the configuration library, and constructing a mark analyzer and a content assembler according to the class names of the mark analyzer and the content assembler therein; analyzing the operator and the operated object mark to acquire the description of the operator and the operated object, performing mode matching according to a preset mode of the operation log type, and assembling the operation log content; and recording the operation log content, wherein the configuration information at least comprises the class names of the mark analyzer and the content assembler of the type. The invention also discloses an operation log recording system. The method and the system can avoid bring randomness recorded by the operation log into a service system, improve the consistency of the service system, and reduce maintenance cost.
Description
[technical field]
The present invention relates to the computer system log record, be specifically related to a kind of operation log recording method and system.
[background technology]
In operation system, in order to ensure the validity of user operation with the user is operated and audit and investigate in the future, system need carry out log record to the key operation that user (keeper, final user) done.Along with the expansion of professional scale, handled service logic of application system and business function are also increasingly sophisticated.Therefore, the also strictness of carrying out for application system more of demands such as validity, integrality and security.This carries out complete detailed record with regard to the behavior that needs operation system the operator is taken place in the using system process, be called Operation Log.Operation Log is the daily record of the operation behavior that taken place when using operation system of the person that is used for the recording operation, and the content of daily record often includes user's information, the description that is operated object and operating result etc.
Since operation log recording following important information: what the purpose who has carried out this operation, this operation is, when how or the like system has carried out result that this operation, system carry out, these Operation Logs can provide behavior record for the people of operating system, and the system that the operator can be looked back in the past uses experience; While also provides detailed information for the maintainer of system, in order to operator's behavior is inquired about and analyzed.
The method and the framework of operation log recording are provided at present, and popular solution is to use Log4j, Apache Common Logging (be respectively two classes increase income framework) etc.In program, embed many print statements by the daily record output function that these frameworks provided.These print statements can output in control interface, file or the database.The developer of system need be ready to all information that will write down, and as: user name, action name, processed object, operation result information etc., and is realized in program.Though this way makes operation system possess the function of recording operation daily record, but owing to the standard and the constraint that lack the developer, make and be easy to bring the randomness of developer's recording operation daily record into operation system, not only influence the consistance of operation system, also can bring extra maintenance cost.The shortcoming of prior art is embodied in:
1, the complicated service function often needs many developers to cooperate, but different developers can there are differences the understanding and the statement of operation system function, therefore, the same system operation just may occur and the different Operation Logs of describing can occur.Simultaneously, because potential random factor, the developer might adopt the daily record of the diverse format and content recording operation of record to same system's operation fully under different scenes.
2, all Operation Log contents are all provided by the developer, and in the operation system of reality, operator and be operated object and in routine processes, often all identify with its ID, so, for the readability of Operation Log, the developer also must be associated these ID with its Name and Description information.For this reason, the developer can carry out extra searching usually when preparing log content, so both influenced the normal execution of system, also brings new bugs easily.
3, lack necessary form constraint and contents norm for Operation Log between operator, developer and the maintainer.Because the ability of reading, description and understanding language varies with each individual.The people that the Operation Log that the developer write down might be difficult to be read understands and accepts.This otherness often also can cause communication disorder and extra communication cost.
[summary of the invention]
Fundamental purpose of the present invention solves the problems of the prior art exactly, and a kind of operation log recording method and system that can avoid the randomness of recording operation daily record, the consistance that improves operation system and reduction maintenance cost is provided.
For achieving the above object, the invention provides a kind of operation log recording method, it is characterized in that may further comprise the steps:
A1, the repository of the configuration information of deposit operation Log Types is set, the configuration information of each operation log type comprises the class name of sign, logging mode, identification (RNC-ID) analytic device and the content assembler of this operation log type at least;
B1, obtain the operation information that comprises operation log type, operator at least and be operated object identity;
C1, call MDAC, MDAC obtains the configuration information of this operation log type from repository, and makes up identification (RNC-ID) analytic device and content assembler according to wherein the identification (RNC-ID) analytic device and the class name of content assembler;
D1, identification (RNC-ID) analytic device are to the operator and be operated object identity and resolve to obtain the operator and to be operated the description of object, and the content assembler carries out pattern match by the setting pattern of this operation log type, is assembled into the Operation Log content;
E1, write down this Operation Log content.
Among the described step C1, calling by following substep of MDAC realizes:
C11, make up the Operation Log content object according to the operation information that obtained;
C12, call operation log component, and the Operation Log content object passed to the Operation Log assembly;
C13, by Operation Log component call MDAC.
Among the described step C1, MDAC is after repository obtains the configuration information of this operation log type, make up the operation log type object of noting this configuration information earlier, then accessing operation Log Types object makes up identification (RNC-ID) analytic device and content assembler according to class name then to obtain the class name of identification (RNC-ID) analytic device and content assembler.
Described step D1 comprises following substep:
D11, MDAC acquire the right of control;
D12, MDAC call the identification (RNC-ID) analytic device, and the operator is resolved with the sign that is operated object;
D13, resolve the return data access component that finishes;
D14, MDAC call the content assembler, carry out the log content assembling according to logging mode;
D15, the assembling return data access component that finishes.
Described step D14 comprises following substep:
D141, match corresponding log record pattern according to operation log type;
D142, corresponding built-in variable in the log record pattern is replaced with resolving the descriptor that is obtained among the described step D12;
D143, according to log record pattern generating run log content.
The acquiescence of described identification (RNC-ID) analytic device realizes being based on Structured Query Language (SQL), it comprises operator's identification (RNC-ID) analytic device and the person's of being operated identification (RNC-ID) analytic device, described identification (RNC-ID) analytic device has disposed in Log Types in order to resolve the structured query sentence of sign, by complete to operator and the parsing that is operated object identity in database.
For achieving the above object, the present invention also provides a kind of operation log recording system, is used for record is carried out in the operation of operation system, it is characterized in that comprising:
Repository is used for the configuration information of deposit operation Log Types, and the configuration information of each operation log type comprises the class name of sign, logging mode, identification (RNC-ID) analytic device and the content assembler of this operation log type at least;
Data processing equipment, be used to receive and handle the operation information that comprises operation log type, operator at least and be operated object identity, obtain the configuration information of operation log type from repository, and make up identification (RNC-ID) analytic device and content assembler, and to carrying out record by the Operation Log content of content assembler assembling according to the class name of wherein identification (RNC-ID) analytic device and content assembler;
Wherein, described identification (RNC-ID) analytic device is used for the operator and is operated object identity resolving to obtain operator and the description that is operated object, described content assembler is used for carrying out pattern match according to the setting pattern of operation log type, is assembled into the Operation Log content; And
The log content memory bank is used for the storage operation log content.
Described data processing equipment comprises:
Operation Log assembly: be used to calling of the system of accepting business, from operation system, obtain operation log type, operator and be operated object identity, and call MDAC;
MDAC is used for obtaining from repository the configuration information of this operation log type, makes up identification (RNC-ID) analytic device and content assembler according to wherein the identification (RNC-ID) analytic device and the class name of content assembler; Call identification (RNC-ID) analytic device and content assembler to realize the assembling of identification (RNC-ID) analytic and log content; And with the assembling outcome record to the log content memory bank.
Described data processing equipment also comprises the operation log type object, be used to write down the configuration information of this operation log type, and provide it to make up the class name of identification (RNC-ID) analytic device and needed identification (RNC-ID) analytic device of content assembler and content assembler and carry out content and assemble needed logging mode to MDAC.
Described content assembler comprises:
Pattern matching unit is used for matching corresponding log record pattern according to operation log type;
Variable is replaced the unit, is used for replacing the corresponding built-in variable of log record pattern with resolving the descriptor that is obtained;
Module units is used for the Operation Log content of pretending and answering form according to the log record modal sets.
The invention has the beneficial effects as follows:
1, use the present invention, can in the design process of system, the operation to operation system carry out abstract, pre-define operation log type, at least the sign that comprises this Log Types in each type, logging mode, the class name of identification (RNC-ID) analytic device and content assembler, the configuration information of Log Types is left in the repository for inquiry, when operation system need write down each generic operation, sign with Log Types, operator and the sign that is operated object, and other necessary information pass to the operation log recording system, obtain the configuration information of this operation log type from repository by MDAC, and according to wherein the identification (RNC-ID) analytic device and the class name dynamic construction identification (RNC-ID) analytic device object and the content assembler object of content assembler, the former parses the operator and is operated the description of object when being called, the latter is mated according to the setting pattern of operation log type correspondence, variable is preset in replacement, is assembled into the Operation Log content.Above processing procedure has realized the mechanism of reusing to operation log type, to each type systematic operation defining operation Log Types, also, the developer makes up rule for providing unified general Operation Log, avoided the Operation Log that randomness is brought between the developer to describe inconsistent problem, and read the help of log content for the maintainer provides, thereby reduced maintenance cost.
2, the present invention adopts the strategy of " method readjustment " to realize the operator with an identification (RNC-ID) analytic that is operated object and a mouthful will content assembling, be that operation system is in the process of recording operation daily record, the allocating object that indeterminate appointment is concrete, but when moving in the operation log recording system, obtain the class name of callback object (identification (RNC-ID) analytic device and content assembler) by configuration information, and then create corresponding object, and call and finish identification (RNC-ID) analytic and content assembling, therefore, operation system does not relate to obtaining of concrete Name and Description, realize but will identify related the appointing of describing, can guarantee that like this processing logic of operation system can interference-freely normally carry out with title to the operation log recording system.
3, the present invention adopts the implementation strategy of " pattern match " to the structure of log content, in operation log type by and use the logging mode of predefined variable configuration log, by the content assembler with concrete operator's title, be operated these variablees in the information replacement operation logging modes such as object factory, thereby the assembling of complete operation log content.Owing to the content of Operation Log has been carried out concrete norm by the log record pattern, make the structure of Operation Log content and programmer irrelevant, guaranteed the standardization of Operation Log content.
4, the present invention provides the realization of complete unified processing Operation Log for the developer of operation system.Pre-configured defining operation Log Types, and preferably carry out alternately as interface and operation log recording system by the Operation Log assembly, then finish for the coupling assembling of operator and identification (RNC-ID) analytic that is operated object and logging mode by the operation log recording system.This operation system has reduced coupling between the two with the design that the operation log recording system separates.
5, the operation log recording system also has open system frame structure, allows the developer as required the parsing of sign and the assembling of log content to be expanded and increased functionality.Simultaneously, also allow the developer configuration of operation log type is increased or to revise based on the implementation of configuration, and do not need modification and recompilate existing program, significantly reduced the bugs that programmer's human factor causes in the development phase.
[description of drawings]
Fig. 1 is the flowchart of the Operation Log method of an embodiment of the present invention.
[embodiment]
Feature of the present invention and advantage will be elaborated in conjunction with the accompanying drawings by embodiment.
The present invention classifies the operation of operation system according to the content request of log, need write down the operation log type that can reuse of functional definition of same operation daily record to each class, the record of Operation Log content adopts the thought of pattern match, and the general system framework of a unification is provided for the realization of log record.So-called pattern is meant one group of character string with particular sequence or structure, and pattern match is meant and seeks the character that meets ad hoc rules in model string, and character is discerned and handled.Log record of the present invention has also adopted the thought of method readjustment.The method readjustment is a kind of implementation of facing interface, the definition of adopting the configuration callback method more.Dynamically obtain the execution of configuration information and Method Of Accomplishment during operation by program, system does not clearly specify concrete allocating object in advance, but when operation by certain information---normally configuration information obtains the description of allocating object, and then call the object of configuration information appointment, finish function corresponding.
Operation log recording of the present invention system comprises: data processing equipment, repository and log content memory bank.Wherein, data processing equipment is responsible for receiving and handle the operation information that this operation system transmits, and complete operation person and be operated the parsing of object identity and the assembling of log content.Repository is for data processing equipment query configuration information.The storage of log content memory bank is by the final log content that generates of data processing equipment.
In the present embodiment, operation system makes up an Operation Log content object earlier after obtaining operations necessary information, pass to the data processing equipment of operation log recording system as the call parameters of operation system by this object.Contain operation log type sign, operator's sign in the Operation Log content object, be operated the content that operation systems such as object identity, IP address, annotation information need write down.
The data processing equipment of present embodiment preferably comprises with lower module:
The Operation Log assembly: the allocating object that the operation log recording system externally provides, operation system is by calling the record of this object complete operation daily record.The Operation Log assembly is the external calling interface class of operation log recording system, is unique inlet of operation system usage log system.The Operation Log assembly provides the method for recording operation daily record, provide different overloaded method (these methods that are used for the recording operation daily record have identical method name log, just the type of parameter and quantity difference to some extent) according to log content granularity (promptly transmitting the size of quantity of information).More preferably, also provide querying method to be used to obtain information such as operation log type, Operation Log content, be used for operation system and the operation log recording system carries out alternately.Adopt single face to provide service, simplified the processing of operation system, also reduced the degree of coupling between external service system and the operation log recording system simultaneously for operation system.
MDAC: be used for configuration informations such as operation log type are conducted interviews, and make up identification (RNC-ID) analytic device and content assembler according to the class name of wherein identification (RNC-ID) analytic device and content assembler, also be responsible for simultaneously the Operation Log content that assembles is written to final memory device.MDAC only calls for the operation log recording internal system, and operation system is not directly called this module.
Operation log type object: the configuration information that is used for the recording operation Log Types.This object comprises: Log Types sign, operation log recording pattern, operator and be operated objects such as object identity resolver, content assembler.The operation log type object record be the configuration information of Operation Log.Log system is finished the parsing and the structure of daily record by the configuration information in the operation log type object.For example, write down the class name of identification (RNC-ID) analytic device and content assembler in the configuration information in the operation log type object, log system will be in operational process these objects of dynamic construction.
The repository of present embodiment is used to store the configuration information of the operation log type that pre-defines, and the configuration information of each operation log type comprises the identification (RNC-ID) analytic device of the type and the class name of content assembler at least.Configuration information can be stored by document form, also can the storage of database form.
MDAC access configuration storehouse obtains configuration information to make up the operation log type object.Record configuration information in operation log type object as following table:
Table 1
The configuration item title | Configuration item is described |
TYPE_ID | The operation log type sign, operation system is quoted this Log Types by this sign |
TYPE_NAME | The title of operation log type |
PATTERN | The log record pattern is used to control final log content record format, and predefine variable wherein will be replaced when log content is assembled |
MASTER_PARSER_CL ASS | Operator's identification (RNC-ID) analytic device class name, such will be created when operation, be used to obtain the title that the operator identifies pairing operator |
MASTER_PARSER_PA RAM | The parameter of operator's identification (RNC-ID) analytic device will be performed when search operation person's title |
GUEST_PARSER_CLA SS | Be operated object identity resolver class name, such the time will be created in operation, be used to obtain be operated the pairing title that is operated object of object identity |
GUEST_PARSER_PAR AM | Be operated the parameter of object identity resolver, will be performed when being operated object oriented searching |
CONTENT_AS_SEMBL ER_CLASS | Content assembler class name, such will be created when operation, be used for the variable of match pattern, and make up final Operation Log content |
When operation system need be to a certain type operations log, only need to specify an operation log type sign, and pass to the operations necessary person of operation log recording system sign and be operated object identity and get final product.MDAC obtains the configuration information of this operation log type from repository according to the Log Types sign, make up corresponding identification (RNC-ID) analytic device and content assembler according to identification (RNC-ID) analytic device specified in this operation log type and content assembler class name, and finish the parsing and the assembling of log content by calling identification (RNC-ID) analytic device and content assembler, generate final Operation Log content.
Identification (RNC-ID) analytic device: be used for operator's sign and be operated object identity resolving to corresponding descriptor.Particularly, the identification (RNC-ID) analytic device need be realized the interface of resolver, and realizes the parsing to sign in such analytic method.The class star of identification (RNC-ID) analytic device is configured in the operation log type, and sacrificial vessel has the Operation Log of like-identified resolving to use.In configuration item, the resolver class name that is used for handling operator's sign defines at the MASTER_PARSER_CLASS item, is used for handling the resolver class name that is operated object identity and defines at the GUEST_PARSER_CLASS item.In the operational process, system can obtain the class name that configures, and dynamic construction corresponding identification (RNC-ID) analytic device object and the analytic method that calls wherein carry out dissection process.Owing to introduced the identification (RNC-ID) analytic device, operation system need not the Name and Description information that the operator is provided, is operated object, finishes but appoint to the identification (RNC-ID) analytic device of operation log recording system, and this i.e. the concrete application of " method readjustment ".
In the preferred scheme, the Operation Log SQL resolver class that adopts the general operation log component to provide is constructed the identification (RNC-ID) analytic device, such (or its subclass) is configured to MASTER_PARSER_CLASS or GUEST_PARSER_CLASS, and the structured query sentence that will be used for resolving respective identification is disposed at MASTER_PARSER_PARAM or GUEST_PARSER_PARAM, in concrete resolving, identification (RNC-ID) analytic device meeting execution architecture query statement obtains the pairing descriptor of sign from professional system database.
Content assembler: be used for the content of operation log type object is carried out the variable coupling according to the logging mode of operation log type object, generate final log content.The introducing standard of content assembler the record format of Operation Log.Operation system only needs the type of assigned operation daily record, and transmits necessary identification information, and the form of Operation Log and final content will be determined by the operation log recording system.The operation log recording system realizes the dynamic construction of content assembler, the coupling of content assembler complete operation logging mode, the replacement of built-in variable and the generation of Operation Log content, and this i.e. the concrete application of " pattern match ".
For implementation pattern coupling, 7 kinds of built-in variablees are provided in the system of present embodiment, as following table:
Table 2
Name variable | Variable description |
${MASTER_ID} | Operator's sign |
${MASTER_DESC} | Operator's title |
${GUEST_ID} | Be operated object identity |
${GUEST_DESC} | Be operated object factory |
${RECORD_TIME} | The operation log recording time |
${IP_ADDRESS} | The IP address |
${COMMENT} | Annotation information |
A typical logging mode is as follows:
${MASTER_DESC} Zai ${RECORD_TIME} Dui ${GUEST_DESC} has carried out following operation: ${COMMENT}.The employed terminal iidentification Shi of ${MASTER_DESC} ${IP_ADDRESS}.If operator's title that the identification (RNC-ID) analytic device is resolved is Zhang San, being operated object factory is bank account 123456, and then this daily record will be assembled as: Zhang San has carried out following operation 15: 34: 18 on the 12nd Dec in 2007 to account 123456: withdraw the money 10000 yuan.The employed terminal iidentification of Zhang San is 127.1.13.18.Wherein, running time, other necessary informations such as volume and terminal iidentification of withdrawing the money are provided by operation system.
The log content that the content assembler is assembled is out recorded in the log content memory bank by MDAC.Similar with configuration information, log content both can be with the document form record, also can be with database table form record.
Operation log recording of the present invention system has open structure, wherein, identification (RNC-ID) analytic device and content assembler can be expanded and replace, as long as self-defining identification (RNC-ID) analytic device is realized the identification (RNC-ID) analytic device interface that the Operation Log system provides, and the Context resolution device parent that self-defining content assembler is inherited the Operation Log system to be provided gets final product.For example, carry out the realization of identification (RNC-ID) analytic by the execution architecture query statement---oplog structure query language (SQL) resolver, can be by realizing identification (RNC-ID) analytic device interface realizing other identification (RNC-ID) analytic class, such as the mode by locating file etc.In addition, can be configured in the Log Types by the subclass of inheriting the content assembler that content assembler class makes up, thereby realize specific content assembling process.For example, can inherit expansion content assembler class according to actual needs, and its complete class name is configured among the CONTENT_ASSEMBLER_CLASS.
As shown in Figure 1, the execution flow process of the Operation Log method of present embodiment may further comprise the steps:
The operator of step 1, operation system carries out a certain business operation;
The functional module of step 2, operation system obtains operations necessary information (as: operation log type, operator identify, are operated object identity etc.), and makes up the Operation Log content object;
Step 3, operation system call operation log component, and the Operation Log content object passed to the Operation Log assembly as parameter.
Step 4, Operation Log component call MDAC, MDAC is responsible for the complete operation, and the person identifies and is operated the parsing of object identity and the assembling of log content;
Step 5, MDAC query configuration storehouse obtain the configuration information of operation log type, have write down the class name and the log record pattern of identification (RNC-ID) analytic device and content assembler in the configuration information;
Step 7, MDAC make up the operation log type object;
The structure of step 8, complete operation Log Types object;
Step 9, MDAC accessing operation Log Types object obtain the class name of identification (RNC-ID) analytic device;
Step 10, structure identification (RNC-ID) analytic device;
Step 13, MDAC carry out identification (RNC-ID) analytic by the identification (RNC-ID) analytic device, obtain corresponding operator and are operated object factory;
Step 15, MDAC accessing operation Log Types object obtain the class name of content assembler;
Step 16, content construction assembler;
Step 19, MDAC are by content assembler assembly operation log content;
The assembling of step 20, complete operation log content;
Step 21, DAO with the Operation Log content record in memory bank (as database table);
The record of step 22, complete operation daily record;
Step 23, return from DAO;
In the above steps, the concrete execution principle of each module of participation system work can be with reference to the explanation of each ingredient of present embodiment operation log recording system.
Adopt the present invention, can the structure of log content is independent from developer's responsibility, can avoid the subjective random problem of being brought because of different developers, simultaneously, realize log content is carried out mode-definition by configuration information, can also between developer, operator and maintainer, set up unified understanding, reduce understand and the issuable problem of communication link, guarantee validity that the user operates and the user is operated in the future and audit and investigate.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.
Claims (10)
1. operation log recording method is characterized in that may further comprise the steps:
A1, the repository of the configuration information of deposit operation Log Types is set, the configuration information of each operation log type comprises the class name of sign, logging mode, identification (RNC-ID) analytic device and the content assembler of this operation log type at least;
B1, obtain the operation information that comprises operation log type, operator at least and be operated object identity;
C1, call MDAC, MDAC obtains the configuration information of this operation log type from repository, and makes up identification (RNC-ID) analytic device and content assembler according to wherein the identification (RNC-ID) analytic device and the class name of content assembler;
D1, identification (RNC-ID) analytic device are to the operator and be operated object identity and resolve to obtain the operator and to be operated the description of object, and the content assembler carries out pattern match by the setting pattern of this operation log type, is assembled into the Operation Log content;
E1, write down this Operation Log content.
2. operation log recording method as claimed in claim 1 is characterized in that: among the described step C1, calling by following substep of MDAC realizes:
C11, make up the Operation Log content object according to the operation information that obtained;
C12, call operation log component, and the Operation Log content object passed to the Operation Log assembly;
C13, by Operation Log component call MDAC.
3. operation log recording method as claimed in claim 1, it is characterized in that: among the described step C1, MDAC is after repository obtains the configuration information of this operation log type, make up the operation log type object of noting this configuration information earlier, then accessing operation Log Types object makes up identification (RNC-ID) analytic device and content assembler according to class name then to obtain the class name of identification (RNC-ID) analytic device and content assembler.
4. as any described operation log recording method of claim 1 to 3, it is characterized in that: described step D1 comprises following substep:
D11, MDAC acquire the right of control;
D12, MDAC call the identification (RNC-ID) analytic device, and the operator is resolved with the sign that is operated object;
D13, resolve the return data access component that finishes;
D14, MDAC call the content assembler, carry out the log content assembling according to logging mode;
D15, the assembling return data access component that finishes.
5. operation log recording method as claimed in claim 4 is characterized in that: described step D14 comprises following substep:
D141, match corresponding log record pattern according to operation log type;
D142, corresponding built-in variable in the log record pattern is replaced with resolving the descriptor that is obtained among the described step D12;
D143, according to log record pattern generating run log content.
6. as any described operation log recording method of claim 1 to 3, it is characterized in that: the acquiescence of described identification (RNC-ID) analytic device realizes being based on Structured Query Language (SQL), it comprises operator's identification (RNC-ID) analytic device and the person's of being operated identification (RNC-ID) analytic device, described identification (RNC-ID) analytic device has disposed in Log Types in order to resolve the structured query sentence of sign, by complete to operator and the parsing that is operated object identity in database.
7. an operation log recording system is used for record is carried out in the operation of operation system, it is characterized in that comprising:
Repository is used for the configuration information of deposit operation Log Types, and the configuration information of each operation log type comprises the class name of sign, logging mode, identification (RNC-ID) analytic device and the content assembler of this operation log type at least;
Data processing equipment, be used to receive and handle the operation information that comprises operation log type, operator at least and be operated object identity, obtain the configuration information of operation log type from repository, and make up identification (RNC-ID) analytic device and content assembler, and to carrying out record by the Operation Log content of content assembler assembling according to the class name of wherein identification (RNC-ID) analytic device and content assembler;
Wherein, described identification (RNC-ID) analytic device is used for the operator and is operated object identity resolving to obtain operator and the description that is operated object, described content assembler is used for carrying out pattern match according to the setting pattern of operation log type, is assembled into the Operation Log content; And
The log content memory bank is used for the storage operation log content.
8. operation log recording as claimed in claim 7 system, it is characterized in that: described data processing equipment comprises:
Operation Log assembly: be used to calling of the system of accepting business, from operation system, obtain operation log type, operator and be operated object identity, and call MDAC;
MDAC is used for obtaining from repository the configuration information of this operation log type, makes up identification (RNC-ID) analytic device and content assembler according to wherein the identification (RNC-ID) analytic device and the class name of content assembler; Call identification (RNC-ID) analytic device and content assembler to realize the assembling of identification (RNC-ID) analytic and log content; And with the assembling outcome record to the log content memory bank.
9. as claim 7 or 8 described operation log recording systems, it is characterized in that: described data processing equipment also comprises the operation log type object, be used to write down the configuration information of this operation log type, and provide it to make up the class name of identification (RNC-ID) analytic device and needed identification (RNC-ID) analytic device of content assembler and content assembler and carry out content and assemble needed logging mode to MDAC.
10. as claim 7 or 8 described operation log recording systems, it is characterized in that: described content assembler comprises:
Pattern matching unit is used for matching corresponding log record pattern according to operation log type;
Variable is replaced the unit, is used for replacing the corresponding built-in variable of log record pattern with resolving the descriptor that is obtained;
Module units is used for the Operation Log content of pretending and answering form according to the log record modal sets.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100653892A CN101515245A (en) | 2008-02-21 | 2008-02-21 | Operation log recording method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100653892A CN101515245A (en) | 2008-02-21 | 2008-02-21 | Operation log recording method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101515245A true CN101515245A (en) | 2009-08-26 |
Family
ID=41039707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008100653892A Pending CN101515245A (en) | 2008-02-21 | 2008-02-21 | Operation log recording method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101515245A (en) |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916226A (en) * | 2010-08-31 | 2010-12-15 | 山东中创软件商用中间件股份有限公司 | Thread information based multi-thread parallelly-executing tracking method |
CN102479076A (en) * | 2010-11-26 | 2012-05-30 | 金蝶软件(中国)有限公司 | Method and device for recording audit log, and service system |
CN102650938A (en) * | 2011-02-28 | 2012-08-29 | 北京航空航天大学 | Management method for log system and log system |
CN102722432A (en) * | 2011-03-29 | 2012-10-10 | 国际商业机器公司 | Method and apparatus for tracing memory access |
CN103077107A (en) * | 2012-12-31 | 2013-05-01 | Tcl集团股份有限公司 | Method and system for maintaining data |
CN103856530A (en) * | 2012-12-05 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Operation log managing method, server, terminal and system |
CN104144081A (en) * | 2014-08-26 | 2014-11-12 | 福建天晴数码有限公司 | General application log management method, device and system |
CN104156300A (en) * | 2013-05-14 | 2014-11-19 | 利德科技发展有限公司 | Log management system and log management method |
CN104636246A (en) * | 2015-03-18 | 2015-05-20 | 成都市卓睿科技有限公司 | Recording method for software business system log |
WO2015085456A1 (en) * | 2013-12-09 | 2015-06-18 | 北京新媒传信科技有限公司 | Log extraction method under server cluster and server cluster |
CN104731687A (en) * | 2013-12-24 | 2015-06-24 | 镇江金钛软件有限公司 | Real-time computer activity monitoring method |
CN105141448A (en) * | 2015-07-28 | 2015-12-09 | 杭州华为数字技术有限公司 | Method and device for collecting log |
CN105373466A (en) * | 2014-07-08 | 2016-03-02 | 阿里巴巴集团控股有限公司 | A log treatment method and apparatus |
CN105653359A (en) * | 2014-11-28 | 2016-06-08 | 金蝶软件(中国)有限公司 | Method and application system for generation of operation manual |
WO2016202070A1 (en) * | 2015-06-16 | 2016-12-22 | 中兴通讯股份有限公司 | Method and device for recording log in network system |
CN106909325A (en) * | 2016-06-30 | 2017-06-30 | 阿里巴巴集团控股有限公司 | Daily record Method of printing and device and daily record print system |
CN107704369A (en) * | 2017-08-31 | 2018-02-16 | 云宏信息科技股份有限公司 | A kind of recording method of Operation Log, electronic equipment, storage medium, system |
CN110198227A (en) * | 2018-04-04 | 2019-09-03 | 腾讯科技(深圳)有限公司 | Processing method, device, storage medium and the electronic device of journal file |
CN110764968A (en) * | 2019-10-21 | 2020-02-07 | 北京明略软件系统有限公司 | Information processing method and device |
CN111062593A (en) * | 2019-12-06 | 2020-04-24 | 深圳供电局有限公司 | Distribution network operation management method and system, computer equipment and storage medium |
-
2008
- 2008-02-21 CN CNA2008100653892A patent/CN101515245A/en active Pending
Cited By (34)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916226A (en) * | 2010-08-31 | 2010-12-15 | 山东中创软件商用中间件股份有限公司 | Thread information based multi-thread parallelly-executing tracking method |
CN102479076A (en) * | 2010-11-26 | 2012-05-30 | 金蝶软件(中国)有限公司 | Method and device for recording audit log, and service system |
CN102650938A (en) * | 2011-02-28 | 2012-08-29 | 北京航空航天大学 | Management method for log system and log system |
CN102650938B (en) * | 2011-02-28 | 2015-02-18 | 北京航空航天大学 | Management method for log system and log system |
CN102722432B (en) * | 2011-03-29 | 2016-02-24 | 国际商业机器公司 | Follow the trail of the method and apparatus of internal storage access |
CN102722432A (en) * | 2011-03-29 | 2012-10-10 | 国际商业机器公司 | Method and apparatus for tracing memory access |
US9817744B2 (en) | 2011-03-29 | 2017-11-14 | International Business Machines Corporation | Method and apparatus for tracing memory accesses |
CN103856530A (en) * | 2012-12-05 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Operation log managing method, server, terminal and system |
CN103856530B (en) * | 2012-12-05 | 2018-03-23 | 腾讯科技(深圳)有限公司 | Management method, server, terminal and the system of Operation Log |
CN103077107A (en) * | 2012-12-31 | 2013-05-01 | Tcl集团股份有限公司 | Method and system for maintaining data |
CN103077107B (en) * | 2012-12-31 | 2016-12-28 | Tcl集团股份有限公司 | A kind of data maintaining method and system |
CN104156300A (en) * | 2013-05-14 | 2014-11-19 | 利德科技发展有限公司 | Log management system and log management method |
WO2015085456A1 (en) * | 2013-12-09 | 2015-06-18 | 北京新媒传信科技有限公司 | Log extraction method under server cluster and server cluster |
CN105191211A (en) * | 2013-12-09 | 2015-12-23 | 北京新媒传信科技有限公司 | Log extraction method under server cluster and server cluster |
CN105191211B (en) * | 2013-12-09 | 2018-12-18 | 北京新媒传信科技有限公司 | Log extracting method and server cluster under server cluster |
CN104731687A (en) * | 2013-12-24 | 2015-06-24 | 镇江金钛软件有限公司 | Real-time computer activity monitoring method |
CN105373466B (en) * | 2014-07-08 | 2018-11-13 | 阿里巴巴集团控股有限公司 | A kind of log processing method and equipment |
CN105373466A (en) * | 2014-07-08 | 2016-03-02 | 阿里巴巴集团控股有限公司 | A log treatment method and apparatus |
CN104144081A (en) * | 2014-08-26 | 2014-11-12 | 福建天晴数码有限公司 | General application log management method, device and system |
CN105653359A (en) * | 2014-11-28 | 2016-06-08 | 金蝶软件(中国)有限公司 | Method and application system for generation of operation manual |
CN105653359B (en) * | 2014-11-28 | 2020-06-09 | 金蝶软件(中国)有限公司 | Method and application system for generating operation instruction |
CN104636246A (en) * | 2015-03-18 | 2015-05-20 | 成都市卓睿科技有限公司 | Recording method for software business system log |
WO2016202070A1 (en) * | 2015-06-16 | 2016-12-22 | 中兴通讯股份有限公司 | 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 |
CN106326082B (en) * | 2015-06-16 | 2020-10-16 | 南京中兴新软件有限责任公司 | Method and device for recording log in network system |
CN105141448B (en) * | 2015-07-28 | 2018-10-02 | 杭州华为数字技术有限公司 | A kind of acquisition method and device of daily record |
CN105141448A (en) * | 2015-07-28 | 2015-12-09 | 杭州华为数字技术有限公司 | Method and device for collecting log |
CN106909325A (en) * | 2016-06-30 | 2017-06-30 | 阿里巴巴集团控股有限公司 | Daily record Method of printing and device and daily record print system |
CN106909325B (en) * | 2016-06-30 | 2020-08-18 | 阿里巴巴集团控股有限公司 | Log printing method and device and log printing system |
CN107704369A (en) * | 2017-08-31 | 2018-02-16 | 云宏信息科技股份有限公司 | A kind of recording method of Operation Log, electronic equipment, storage medium, system |
CN110198227A (en) * | 2018-04-04 | 2019-09-03 | 腾讯科技(深圳)有限公司 | Processing method, device, storage medium and the electronic device of journal file |
CN110198227B (en) * | 2018-04-04 | 2022-02-22 | 腾讯科技(深圳)有限公司 | Log file processing method and device, storage medium and electronic device |
CN110764968A (en) * | 2019-10-21 | 2020-02-07 | 北京明略软件系统有限公司 | Information processing method and device |
CN111062593A (en) * | 2019-12-06 | 2020-04-24 | 深圳供电局有限公司 | Distribution network operation management method and system, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101515245A (en) | Operation log recording method and system | |
US8788928B2 (en) | System and methodology for development of stream processing applications utilizing spreadsheet interface | |
US8234308B2 (en) | Deliver application services through business object views | |
CN101620536B (en) | Method and device for invoking performance function | |
CN108600148B (en) | Transaction message processing method and device | |
CN101902756B (en) | M2M (Machine To Machine) business platform and working method thereof | |
CN103297381A (en) | Service access method based on plugin and system thereof | |
CN101908015A (en) | Device and method for creating test case based on components | |
US20190147029A1 (en) | Method and system for generating conversational user interface | |
CN102142014A (en) | System and method for export and import of metadata located in metadata registries | |
CN109086433A (en) | A kind of file management method and server based on big data analysis | |
CN110147495A (en) | Page response method, apparatus, equipment and medium based on Configuration Online | |
CN104200324A (en) | Business knowledge management based configuration management method | |
US7752596B2 (en) | Connecting alternative development environment to interpretive runtime engine | |
CN112596857A (en) | Method, device, equipment and medium for isolating SaaS multi-tenant data | |
CN113987337A (en) | Search method, system, equipment and storage medium based on componentized dynamic arrangement | |
CN117032634A (en) | Component processing method and system | |
US8406401B2 (en) | Interactive voice response system to business application interface | |
CN116501311A (en) | Code generation method, device, computing and storage medium and electronic equipment | |
CN104081381B (en) | Method and apparatus for implementing concept service | |
US20230195792A1 (en) | Database management methods and associated apparatus | |
CN114281306A (en) | IT architecture management and control method, IT architecture management and control device, IT architecture processor and IT architecture electronic equipment | |
CN1932760B (en) | System and method for execution of application program | |
CN112925523A (en) | Object comparison method, device, equipment and computer readable medium | |
CN116521686B (en) | Dynamic data table processing method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20090826 |