@loglayer/transport-electron-log
v2.1.14
Published
electron-log transport for the LogLayer logging library.
Downloads
598
Maintainers
Readme
Electron-log Transport for LogLayer
Electron-log transport for the LogLayer logging library.
Electron-log is a logging library designed specifically for Electron applications.
Installation
npm install loglayer @loglayer/transport-electron-log electron-logUsage
// Main process logger
import log from 'electron-log/src/main'
// Or for Renderer process
// import log from 'electron-log/src/renderer'
import { LogLayer } from 'loglayer'
import { ElectronLogTransport } from "@loglayer/transport-electron-log"
const logger = new LogLayer({
transport: new ElectronLogTransport({
logger: log
})
})Documentation
For more details, visit https://loglayer.dev/transports/electron-log
