You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Logsene/Classes/Core.swift
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,16 +40,17 @@ public class LogsLocation {
40
40
- appToken: Your Logsene application token.
41
41
- type: The Elasticsearch type to use for all events.
42
42
- receiverUrl: The receiver url (optional).
43
-
- maxOfflineMessages: The maximum number of messages (5,000 by default) stored while device is offline (optional).
43
+
- maxOfflineFileSize: The maximum size of a single file used for offline storage (optional, 100000 by default).
44
+
- maxOfflineFiles: The maximum number of files used for offline storage (optional, 10 by default).
44
45
- automaticLocationEnriching: When set to true the library will automatically enrich log events with location of the user (optional, false by default).
45
46
- useLocationOnlyInForeground: When set to true the location data will only be used when the application is in foreground (optional, true by default).
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
58
58
}
59
59
```
60
60
61
-
You can optionaly provide the `receiverUrl` parameter if you are using [Sematext Enterprise](https://sematext.com/enterprise), and `maxOfflineMessages` to configure how many messages are stored while device is offline (5,000 by default).
61
+
Additional options are available:
62
+
- the `receiverUrl` parameter allows specifying the data reciver if you are using our EU location or [Sematext Enterprise](https://sematext.com/enterprise)
63
+
- the `automaticLocationEnriching` parameter enabled automatic enrichment of logs from the mobile application with location data
64
+
- offline storage size can be configured by using the `maxOfflineFileSize` (100000 by default) and `maxOfflineFiles` (10 by default) parameters. The size of the offline storage will be equal to `maxOfflineFileSize` multiplied by `maxOfflineFiles`.
62
65
63
66
**Note**: We highly recommend creating a write-only token in your application settings for use in your mobile apps.
0 commit comments