(path: String)
| 61 | * @returns {Promise<void>} |
| 62 | */ |
| 63 | const OpenLog = async (path: String): Promise<void> => { |
| 64 | const log = await Storage.get('log'); |
| 65 | let openLog = log?.opens ?? []; |
| 66 | log.opens = [...openLog, { path, timestamp: new Date() }]; |
| 67 | Storage.set('log', log); |
| 68 | }; |
| 69 | |
| 70 | export { ErrorLog, InfoLog, OperationLog, OpenLog, OpenLogType }; |
no test coverage detected