CN104361032B - A kind of method of operation log management - Google Patents

A kind of method of operation log management Download PDF

Info

Publication number
CN104361032B
CN104361032B CN201410583417.5A CN201410583417A CN104361032B CN 104361032 B CN104361032 B CN 104361032B CN 201410583417 A CN201410583417 A CN 201410583417A CN 104361032 B CN104361032 B CN 104361032B
Authority
CN
China
Prior art keywords
log
record
business information
business
operation 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.)
Active
Application number
CN201410583417.5A
Other languages
Chinese (zh)
Other versions
CN104361032A (en
Inventor
刘佳兴
徐凯
钟民杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Travel Polytron Technologies Inc
Original Assignee
Shenzhen Travel Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Travel Polytron Technologies Inc filed Critical Shenzhen Travel Polytron Technologies Inc
Priority to CN201410583417.5A priority Critical patent/CN104361032B/en
Publication of CN104361032A publication Critical patent/CN104361032A/en
Application granted granted Critical
Publication of CN104361032B publication Critical patent/CN104361032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method of operation log management, including:The daily record for setting up to store business information is set;Set up to store the log setting detail for the details that the business information needs of configuration log setting record;Set up to record the operation log of the concrete operations of business information during User operation log is set.Pass through a kind of method of operation log management provided by the invention, the different operation notes in Java Web applications under different business state can be solved to be involved in database, while facilitating monitoring system use state and analysis error message, relevant operation data record sheet need not be increased, workload and development time are reduced, convenient for managing database table.

Description

A kind of method of operation log management
Technical field
The present invention relates to computer realm, the difference in being applied more particularly to a kind of Java Web under different business state Operation log management method.
Background technology
General enterprise management system required by all having to the integrality of data, such as requires system to be unable to physics and deletes Except record, it is desirable that will there is system to record or update certain data when adding each data and be required for tracing into variation Content or while deleting data, which need whom is recorded, to be deleted, and when is deleted, so as to can by system or manually after delete by mistake Some functions recover the data deleted by mistake.Realize that this function is referred to as operation log.
The main purpose for doing operation log is the operation behavior that trace into each user in system, for example, to data into The behaviors such as row is inquired about, is newly-increased, editing or deletion even logs in.Further, it is possible to understand that be that system feelings are used to user The tracking of condition is recorded, foundation when preventing data from surprisingly deleting, changing the tracking of data, to be gone back to data Original can protect the integrality of data from certain program.
In specific enterprise's application scenarios, generally require (such as shown below to a certain existing table Employee tables) it is operated, such as:It is added or the operation of fresh information, the operation for being inquired about or being deleted information.It is existing It is needing to do a system log to the behavioural information for operating the table, current operation way is:One is established with existing table more The same table, increases the additional information of operation behavior, for example, establish one it is corresponding with Employee table handling behaviors EmployeeLog tables, wherein having added some as LogCreated (date is added in daily record) and OperationType (is inquired about, new Increase, delete, update) attached information.
This way is possible for single operation log recording, but if being recorded to multiple operations Words, such as to make EmployeeIncome (the income situation of employee) to Employee tables table does daily record, and needs to table FixedAsset (fixed assets) carries out log recording, if establishing a corresponding operation day using for each operation If will table, doubling for table quantity can not only be caused by so doing, and greatly add workload and development time, to data Storehouse table not manageability situations such as.
Therefore, it is necessary to provide a kind of new blog management method, with more than solution.
The content of the invention
It is an object of the invention to provide a kind of method of operation log management, can solve to be involved in Java Web should With the different operation notes under middle different business state in database, facilitate monitoring system use state and analysis mistake letter While breath, it is not necessary to increase relevant operation data record sheet, reduce workload and development time, convenient for managing database table.
For solution more than technical problem, the present invention provides a kind of method of operation log management, including:
The daily record for setting up to store business information is set;
Set up to store the log setting detail for the details that the business information needs of configuration log setting record;
Set up to record the operation log of the concrete operations of business information during User operation log is set.
Further, the business information that the daily record is set includes at least business table name, Business Name, major key.
Further, the log setting detail is corresponding with the business information that the daily record is set, and stores the business The details that information needs record.
Further, the user's operation includes at least one of following operation:Inquiry, newly-increased, deletion, update.
Further, in the method, according to the business information that configuration log is set, global daily record controller LogManagerment is cut into the expression formula of the class that can be matched and method by AOP services, and used method is performed Before methods can be called before, are obtained log information, and are written into database or journal file.
Compared with prior art, the present invention provides a kind of method of operation log management, by simply configuring and writing It can realize the log management of sophisticated functions, realization is involved in different under different business state in Java Web applications Operation note facilitates monitoring system use state and analysis error message in database;It need not when being carried out at the same time log recording Increase relevant operation data record sheet, greatly reduce workload and development time, convenient for managing database table.
Description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the present invention, this hair Bright schematic description and description does not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for operation log management provided by the invention.
Fig. 2 is a kind of function analysis diagram of the method for operation log management provided in an embodiment of the present invention.
Specific embodiment
In order to make technical problems, technical solutions and advantages to be solved clearer, clear, tie below Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used To explain the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the present invention provides a kind of method of operation log management, including:
It sets up daily record and (LogSetting) is set, include the business such as business table name, Business Name, major key letter for storing Breath.
Log setting detail (LogsettingDetail) is set up, corresponds to the business information during daily record is set, is used for The details of record required for storing the business information during configuration log is set.For example, it is necessary to record word in Employee tables The information such as section Name, Gender.
Operation log (LogOperation) is set up, for recording the tool of various businesses information during User operation log is set Body operational circumstances.Such as:Carry out query, add, delete, update and other operations.
Fig. 2 is the function parsing that the technique according to the invention provides a kind of specific implementation of the method for operation log management Figure.
As shown in Fig. 2, daily record sets the business information of configuration storage daily record, including:TableName (business table name), BusinessName (Business Name), PrimaryKey (major key), URLTemplate (URL template), CreateUser (are created Person), CreateTime (creation time), DeleteScriptTemplate, UpdateScriptTemplate.These business are believed It ceases and provides service basic for user's operation.
Log setting detail corresponds to the business information during daily record is set, and the business information during storage configuration log is set needs The detailed content to be recorded, including:LogID, ColumnName (field name), ColumnText (the field meaning), ColumnDataType (data type), CreateUser (founder), CreateTime (creation time).
The concrete condition of various businesses information during operation log recording User operation log is set, including:LogID、 OperationType (action type), PrimaryKeyValue (Major key), Content (content), URL, CreateUser (founder), CreateTime (creation time).
In order to make technical scheme clearer, clear, below in conjunction with specific implementation the technology of the present invention side The embodiment of case, the present invention will be described in further detail.
Present embodiment is realized using Spring AOP and reflection.
The configuration of Spring in the project:
<!-- configuration log management -->
<Bean id=" LogManagerment " class=" com.log.LogManagerment "></bean>
<aop:config>
<!-- calling daily record class -->
<aop:Aspectid=" b " ref=" LogManagerment ">
<!-- the add methods of all classes under com*.dao bags are configured, can be all intercepted before calling -->
<aop:Pointcutid=" logScope " expression=" execution (* com.dao.*.add* (..))"/>
<!-- the add methods of all classes can be called before performing in LogManagerment under com*.dao bags Before methods -->
<aop:Beforepointcut-ref=" logScope " method=" before "/>
</aop:aspect>
</aop:config>
According to the business information that configuration log is set, global daily record controller LogManagerment is serviced by AOP The expression formula expression of the class that can be matched and method is cut into, these methods are performed before calling before methods, And log information (including Business Name, field name and type etc.) is got in method, and it is written to database or daily record In file.
Daily record has system log, business operation log, work log etc..
System log:Inquire about operation note to system in specified time section for user, it is unrelated with specific business, it is necessary to When configure.
Business operation log:It is related with the specific business of system, it is the set of a series of operation log.
Work log:Be the progress for tracking business, manager facilitated preferably to hold job progress, so as to and When be controlled by, effectively allocate resource.In modern target, manager can check a department or project team member in batches Daily record, track critical event, in time instruct;In addition, work log also has the effect that achievement proves, workload, the work of employee Make effect to be embodied herein, it is helpful to managing.
A preferred embodiment of the present invention has shown and described in above description, but as previously described, it should be understood that the present invention Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and available for various other combinations, Modification and environment, and above-mentioned introduction or the technology or knowledge of association area can be passed through in the scope of the invention is set forth herein It is modified.And changes and modifications made by those skilled in the art do not depart from the spirit and scope of the present invention, then it all should be in this hair In the protection domain of bright appended claims.

Claims (4)

  1. A kind of 1. method of operation log management, which is characterized in that the described method includes:
    The daily record for setting up to store business information is set;
    Set up to store the log setting detail for the details that the business information needs of configuration log setting record;
    Set up to record the operation log of the concrete operations of business information during User operation log is set;
    According to the business information that configuration log is set, global daily record controller LogManagerment is serviced by AOP and cut To the class and the expression formula of method that can be matched, used method is performed before that before methods can be called, and obtains daily record Information, and be written into database or journal file.
  2. 2. the method as described in claim 1, which is characterized in that the business information that the daily record is set includes at least traffic table Name, Business Name, major key.
  3. 3. method as claimed in claim 1 or 2, which is characterized in that the industry that the log setting detail is set with the daily record Information of being engaged in is corresponding, stores the details that the business information needs record.
  4. 4. the method as described in claim 1, which is characterized in that the user's operation includes at least one of following operation:Inquiry, Newly-increased, deletion, update.
CN201410583417.5A 2014-10-27 2014-10-27 A kind of method of operation log management Active CN104361032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410583417.5A CN104361032B (en) 2014-10-27 2014-10-27 A kind of method of operation log management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410583417.5A CN104361032B (en) 2014-10-27 2014-10-27 A kind of method of operation log management

Publications (2)

Publication Number Publication Date
CN104361032A CN104361032A (en) 2015-02-18
CN104361032B true CN104361032B (en) 2018-05-22

Family

ID=52528294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410583417.5A Active CN104361032B (en) 2014-10-27 2014-10-27 A kind of method of operation log management

Country Status (1)

Country Link
CN (1) CN104361032B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649061B (en) * 2015-11-04 2019-12-10 阿里巴巴集团控股有限公司 Method and equipment for recording operation log of user in web system
CN107193833A (en) * 2016-03-15 2017-09-22 阿里巴巴集团控股有限公司 The monitoring method and device of database access
CN108733543B (en) * 2017-04-24 2021-11-12 北京京东尚科信息技术有限公司 Log analysis method and device, electronic equipment and readable storage medium
CN107704369B (en) * 2017-08-31 2021-05-04 云宏信息科技股份有限公司 Operation log recording method, electronic device, storage medium and system
CN110851340A (en) * 2019-11-06 2020-02-28 香港乐蜜有限公司 Operation log collection method and device and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436962A (en) * 2008-12-04 2009-05-20 金蝶软件(中国)有限公司 Log management method and system
CN102929771A (en) * 2012-09-28 2013-02-13 用友软件股份有限公司 Log recording device and log recording method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8321433B1 (en) * 2011-05-06 2012-11-27 Sap Ag Systems and methods for business process logging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436962A (en) * 2008-12-04 2009-05-20 金蝶软件(中国)有限公司 Log management method and system
CN102929771A (en) * 2012-09-28 2013-02-13 用友软件股份有限公司 Log recording device and log recording method

Also Published As

Publication number Publication date
CN104361032A (en) 2015-02-18

Similar Documents

Publication Publication Date Title
CN104361032B (en) A kind of method of operation log management
US7765460B2 (en) Out-of-band change detection
US10832217B2 (en) Blockchain-based workflow system
US8165994B2 (en) Integrated governance and version audit logging
US10043156B2 (en) System and method for cross enterprise collaboration
US20180276223A1 (en) Unified document retention management system
US20110173525A1 (en) Monitoring and Tracking Application Usage
US20090083336A1 (en) Search based data management
US11468022B2 (en) Integrated disposition for file retention management
RU2586872C2 (en) Removal of corrupted styles from extensible markup language documents
US11328254B2 (en) Automatic group creation based on organization hierarchy
US11068505B2 (en) System and method for generating and merging activity-entry reports utilizing activity-entry hierarchy and hierarchical information of the activity-entries
US20110153579A1 (en) Method and Apparatus for Policy Distribution
EP3000049B1 (en) System and method to provide document management on a public document system
CN114399292A (en) Method, computing device and medium for controlling business approval process
CN108932432A (en) Data guard method and host server system
CDIA A walk in the cloud
US20180052862A1 (en) Log collection system and log collection method
US20230325506A1 (en) Methods and Systems for Implementing Automated Controls Assessment in Computer Systems
US10552455B2 (en) Analytics enablement for engineering records
CN105740131B (en) Software user behavior rollback processing method and device
CN113220762A (en) Method, device, processor and storage medium for realizing general record processing of key service field change in big data application
US20200134518A1 (en) Inter-application workflow performance analytics
DE102015122028A1 (en) Method and device for updating contacts
Popa et al. A practical abstraction of ERP to cloud integration complexity: The easy way

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District South Road seven No. 002 Shenzhen Digital Technology Park B1 building 6 floor A District No. 1

Applicant after: Shenzhen travel Polytron Technologies Inc

Address before: 518057 Guangdong city of Shenzhen province Nanshan District South Road seven No. 002 Shenzhen Digital Technology Park B1 building 6 floor A District No. 1

Applicant before: Shenzhen Vispractice Technology Corporation

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method of operation log management

Effective date of registration: 20220322

Granted publication date: 20180522

Pledgee: Bank of Jiangsu Limited by Share Ltd. Shenzhen branch

Pledgor: SHENZHEN VISPRACTICE TECHNOLOGY CO.,LTD.

Registration number: Y2022440020025