nsmcp::QuestionPayloadAudit method init (protected)
<instance of nsmcp::QuestionPayloadAudit> init
Defined in /usr/local/ns/tcl/nsmcp/question-payload-audit.tcl
- Testcases:
- No testcase defined.
Source code: if {[file pathtype ${:directory}] ne "absolute" || ${:maxBytes}<1048576 || ${:maxEntryBytes}<1024 || ${:maxEntryBytes}>${:maxBytes} || ${:retention}<60 || ${:retention}>2592000} { error "Invalid question payload audit limits or directory" } if {![file exists ${:directory}]} { file mkdir ${:directory} file attributes ${:directory} -permissions 0700 } file lstat ${:directory} state if {$state(type) ne "directory" || ([file attributes ${:directory} -permissions]&0077)!=0} { error "Question payload audit directory must be a private directory (0700)" } set :mutex [ns_mutex create "nsmcp:payload-audit:[ns_info server]"] :cleanupXQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)