Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
c0010c opened this issue Jun 15, 2024 · 1 comment

Comments

@c0010c
Copy link

c0010c commented Jun 15, 2024

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

@megahertz
Copy link
Owner

Could you show your logger initialization code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants