This topic is locked

ASPRunner Audit Log

6/5/2012 8:54:17 AM
ASPRunnerPro General questions
swat author

ASPrunner 7.0 9572
When I choose the audit function, the audit is created by the system as a single file such as audit.log.20120605

I want to have all the audit log files under one location ex: audit folder and each day the log will be added to this folder with a current name

Sergey Kornilov admin 6/5/2012

Unfortunately ASPRunnerPro doesn't have such functionality. The only way to make it work your way is to modify generated ASP code.

swat author 6/7/2012

Open a file log_audit where your application is running.

Ex: wwwroot/log_audit
add this folder name to audit file creation on audit.asp

tn = ("log_audit/"&((CSmartStr(logfileName) & "_") & CSmartStr(format_datetime_custom(db2time(now()),"yyyyMMdd"))) & ".") & CSmartStr(logfileExt)

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=66499&image=1&table=forumreplies' class='bbc_emoticon' alt=':lol:' />