electron-log icon indicating copy to clipboard operation
electron-log copied to clipboard

Got a error "data.map is not a function" when I custom a transport.file.format.

Open c0010c opened this issue 1 month ago • 1 comments

Version:5.1.5 Stack: Unhandled electron-log error TypeError: data.map is not a function at toString (D:\dev\webWS\game-rcsc-electron\node_modules\electron-log\src\node\transforms\object.js:63:33) at D:\dev\webWS\game-rcsc-electron\node_modules\electron-log\src\node\transforms\transform.js:15:14 at Array.reduce () at transform (D:\dev\webWS\game-rcsc-electron\node_modules\electron-log\src\node\transforms\transform.js:13:21) at transport (D:\dev\webWS\game-rcsc-electron\node_modules\electron-log\src\node\transports\file\index.js:74:21) at Logger.processMessage (D:\dev\webWS\game-rcsc-electron\node_modules\electron-log\src\core\Logger.js:173:11) at Logger.logData (D:\dev\webWS\game-rcsc-electron\node_modules\electron-log\src\core\Logger.js:129:10) at [as info] (D:\dev\webWS\game-rcsc-electron\node_modules\electron-log\src\core\Logger.js:83:37)

image

c0010c avatar Jun 15 '24 12:06 c0010c