-- 百战成神专用日志(文件 log/oss_bzcs, 见 common.Log LOGID_OSS_BZCS) local Log = require("common.Log") function write(logStr) Log.write(Log.LOGID_OSS_BZCS, logStr or "") end -- action 为业务动作名, detail 为键值描述串 function logAction(action, detail) if detail and detail ~= "" then write(string.format("[%s] %s", action, detail)) else write(string.format("[%s]", action)) end end