escrcpy/electron/exposes/log/index.js

13 lines
266 B
JavaScript

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