megahertz / electron-log

Simple logging module Electron/Node.js/NW.js application. No dependencies. No complicated configuration.
MIT License
1.3k stars 127 forks source link

getFile on FileTransport throws an error #364

Closed louisparks-sta closed 1 year ago

louisparks-sta commented 1 year ago

I was trying to find out the full path to where the logs are stored, this used to work. const file = (someLog.transports.file as electronLog.FileTransport).getFile();

but with 5.0.0-beta.24 results in.... TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined

megahertz commented 1 year ago

Thank you for the report, just reproduced it. I'll try to publish a fix on this week.