escrcpy/electron/exposes/log/index.js
2024-09-08 01:55:54 +08:00

13 lines
269 B
JavaScript

import { createProxy } from '$electron/helpers/index'
import log from 'electron-log/main.js'
const levels = Object.keys(log.functions)
const functions = () => ({ ...createProxy(log, levels) })
export default {
levels,
functions: functions(),
...functions(),
}