(logMsg)
| 1221 | FUNCTION writeLOG |
| 1222 | ------------------------------------------------------------------*/ |
| 1223 | async function writeLOG(logMsg){ |
| 1224 | if (!config.runsInApp && LOG_TO_FILE) { |
| 1225 | const fm = FileManager.iCloud(); |
| 1226 | let logPath = fm.joinPath(fm.documentsDirectory(), LOG_FILE_PATH); |
| 1227 | if (!fm.fileExists(logPath)) fm.createDirectory(logPath); |
| 1228 | const logFile = fm.joinPath(logPath, 'Step_' + LOG_STEP + '_' + LOG_FILE_NAME); |
| 1229 | fm.writeString(logFile, logMsg); |
| 1230 | } else console.log ("Step_" + LOG_STEP + ": " + logMsg); |
| 1231 | LOG_STEP++; |
| 1232 | } |
| 1233 | /*------------------------------------------------------------------ |
| 1234 | FUNCTION convertFromUTC |
| 1235 | ------------------------------------------------------------------*/ |
no outgoing calls
no test coverage detected