escrcpy/electron/exposes/log/index.js
2024-05-08 11:02:00 +08:00

13 lines
269 B
JavaScript

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