2015-04-02 71 views
0

我正在嘗試使每個腳本的單獨文件中的AutoTouch應用程序日誌事件。例如,我想讓script1.lua在script1.log中記錄事件。AutoTouch的多個日誌文件

我已經試過如下:

--code here 
log(/var/mobile/Library/AutoTouch//Library/script1.log and "Log Message Here") 
--code here 

接下來我想:

--code here 
log(script1.log("Log message here")) 
--code here 

我想最終的代碼是:

--code here 
log(/script1.log("Log Message Here")) 

在所有這些代碼塊,我收到錯誤警報:

Unexpected symbol near '/' 

我是否在某處發出語法錯誤,或者此功能不存在?

回答

0

所有Lua strings都需要放在匹配的分隔符中(單引號或雙引號;方括號中也有長字符串),這就是爲什麼你會得到錯誤。

至於日誌位置,我看不到在AutoTouch log documentation更改日誌文件的位置的任何方式。