Home > Net >  Background system operation log backstage system logging operation
Background system operation log backstage system logging operation

Time:10-14

Backend system operation log, and then to a detailed record of each management operation, this how to write well, SOB, the project manager said that there is a third party of the log plug-in, but I didn't find in the search on the net, comrades, you tell me about this how to do well,,
How to write well,

CodePudding user response:

Log4net

Reference: http://www.cnblogs.com/TianFang/archive/2013/03/09/2951819.html

CodePudding user response:

Log4Net and EntLib Log can
http://blog.csdn.net/qing2005/article/details/7368738
http://www.cnblogs.com/zuqing/p/5874384.html

CodePudding user response:

There is also a NLoghttp://www.cnblogs.com/skyapplezhao/p/5690565.html

CodePudding user response:

A can also write their own

CodePudding user response:

Recommend log4net mature, spent a couple of companies are recorded in the log, well with simple and crude.

CodePudding user response:

The simplest is the operation command to list, the final display can be read out

CodePudding user response:

How to feel your company's people are pretty layman, is a novice?

Someone called you "management operating subsidiary", this log is not log, can not solve any third-party components,

Write code to record the operator to add and delete operation,

CodePudding user response:

You first understand the operating subsidiary refers to what is right
Log DLL is responsible for writing things in to a particular place, but it don't know how to collect the data

CodePudding user response:

Myself to build a log table, write a packaging function, need to place calls, and use action filter to still can not meet the requirements of

CodePudding user response:

Suggested that I learn AOP (aspect oriented programming), like this kind of circumstance is the best way, not in every operating point Log,
For the save operation logs, can fully realize, a simple log text files, or XML,

CodePudding user response:

Here are the system can satisfy the
This is an open source system, introduce address here

How to use Java to write a system operation log, recording the operation of each user's authorization to the database? It is better for detailed ideas? - easy to elder brother answered - zhihu
https://www.zhihu.com/question/267052216/answer/665759399

The open source project https://github.com/yeecode/ObjectLogger

Can realize the user action, after the completion of each record,


CodePudding user response:

Record can use log4net, such as nlog, if you want to have interface to view directly, also can write their own SQL directly into the database, and of course the log control is also supports writing database

Then you should a bigger problem on how to trigger this request, the low way is to add code in entrance of each request, but this really is too low,
So is the handler global records, or is the attribute of the MVC records

Then the core through middleware

CodePudding user response:

Directly it is ok to use the open source framework:
ObjectLogger, address is https://github.com/yeecode/ObjectLogger

Have English description

It can automatically analyze object properties change record to the log in the system, and provide the log store, jars and other support,
Can do the following implementation effect:
! [images] (HTTP://https://img-blog.csdnimg.cn/20190524095550125.jpg? X - oss - process=image/watermark, type_ZmFuZ3poZW5naGVpdGk, shadow_10, text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L29ubGluZWRjdA==, size_16, color_FFFFFF t_70)

CodePudding user response:

Need not the third party, you write the details to show in the system, are you sure you want to write to the database, in change, add or delete a writing database (log) table
  • Related