CodePudding user response:
I met this problem, to ask,,,,,,, check data, with the triggerCodePudding user response:
Int li_fileNumString ls_filename, ls_msg='testlog'
Ls_filename='log_ + String (today (),' yyyymmdd ') + "log"//log file name
//open the file
Li_FileNum=FileOpen (li_filename LineMode! The Write! , Shared! , Append!)
//log
FileWrite (li_fileNum ls_msg)
//close log file
//close the file
FileClose (li_FileNum)
CodePudding user response:
Record every step of the operation?If you want to record to the database operation, can use a datawindow updatestart events, record the data of original value and update the value
If you want to record every time the user operation, will need to record every step in the operation, such as buttons, clicked and itemchanged events within the data window in the record
CodePudding user response:
Every step of the operation is not possible, you will have maxed out logging library, generally only record key operations, written in OF_WRITELOG in corresponding ue_update or ue_preupdate eventsCodePudding user response:
I usually also against AIDS controversial place to recordAll action down
Such as not very detailed will remember first action plan
Opened the record file
From already will frighten to death first
What also did not find
Record file can be written in the native, Internet or database
The following is a record in one of the ways in which the native
//function: f_write2logFile
//argument: as_fileName file name
//as_message message
//note: attach the message to the as_fileName
The integer li_logFileNum
Li_logFileNum=FileOpen (as_filename LineMode! The Write! , LockWrite! , Append!)
If li_LogFileNum & lt; 0 then
MessageBox (' the Log file could not be opened, 'could not be opened' + as_filename)
The return - 1
End the if
FileWrite (li_LogFileNum as_message)
FileClose (li_LogFileNum)
return 0
CodePudding user response:
Can consider to increase the records in the database, is used to record some information of the operationCodePudding user response:
The trigger is not recommendedCodePudding user response:
Upstairs, exactly is suggested implementing triggers, or do not recommend using the trigger? I am confused,,,,,,,CodePudding user response:
Must first understand the log to record which content, database operations, into the module, the operation of the mouse and keyboard, etc., on the content of the record to logging, can increase in pb the corresponding event log records,CodePudding user response:
Looks like the building didn't come home after hair stick