cordova-plugin-unvired-logger 0.0.20 → 0.0.21
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/package.json +1 -1
- package/plugin.xml +1 -1
- package/src/electron/package.json +1 -1
- package/src/ios/Logger.swift +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cordova-plugin-unvired-logger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"description": "A logger plugin for Electron, Android, Browser, and iOS that appends logs to log.txt files organized by user ID.",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "cordova-plugin-unvired-logger",
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<plugin id="cordova-plugin-unvired-logger" version="0.0.
|
|
2
|
+
<plugin id="cordova-plugin-unvired-logger" version="0.0.21"
|
|
3
3
|
xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
4
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
5
5
|
|
package/src/ios/Logger.swift
CHANGED
|
@@ -61,7 +61,9 @@ import UIKit
|
|
|
61
61
|
let logEntry = self.formatLogEntry(level: level, sourceClass: sourceClass, sourceMethod: sourceMethod, message: message)
|
|
62
62
|
|
|
63
63
|
// Print to console before writing to file
|
|
64
|
+
#if DEBUG
|
|
64
65
|
NSLog("%@", logEntry.trimmingCharacters(in: .whitespacesAndNewlines))
|
|
66
|
+
#endif
|
|
65
67
|
self.commandDelegate.run(inBackground: {
|
|
66
68
|
// Serialize rotation + write to guarantee ordering
|
|
67
69
|
self.logWriteQueue.async {
|