@lvce-editor/main-process 6.16.0 → 6.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mainProcessMain.js +8 -2
- package/package.json +1 -1
package/dist/mainProcessMain.js
CHANGED
|
@@ -4516,8 +4516,14 @@ const formatMessage = ({
|
|
|
4516
4516
|
message,
|
|
4517
4517
|
sourceId
|
|
4518
4518
|
}) => {
|
|
4519
|
-
|
|
4520
|
-
|
|
4519
|
+
return JSON.stringify({
|
|
4520
|
+
category: 'Window',
|
|
4521
|
+
level,
|
|
4522
|
+
line: lineNumber,
|
|
4523
|
+
message,
|
|
4524
|
+
source: sourceId,
|
|
4525
|
+
timestamp: new Date().toISOString()
|
|
4526
|
+
});
|
|
4521
4527
|
};
|
|
4522
4528
|
const addListener = (webContents, logger = getOrCreateLogger()) => {
|
|
4523
4529
|
webContents.on('console-message', event => {
|