-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from sematext/allow_stopping_logs_sending
Ability to pause log sending and README update
- Loading branch information
Showing
5 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ A few predefined meta fields are included in each event sent to Sematext. The fi | |
- versionCode (app build number, eg. 92) | ||
- osRelease (iOS version, eg. 9.3.0) | ||
- uuid (device identifier) | ||
- OS type (iOS) | ||
|
||
You can set your own meta fields with `LogseneSetDefaultMeta`. For example: | ||
|
||
|
@@ -85,6 +86,23 @@ LogseneSetDefaultMeta(["user": "[email protected]", "plan": "free"]) | |
|
||
Note that these meta fields are global, and will be attached to every event sent to Logsene. | ||
|
||
Pausing & Resuming Logs Sending | ||
---------------------------------------- | ||
|
||
The library can be instructed to stop sending logs on demand. To do that you need to call the following function: | ||
|
||
```swift | ||
LogsenePauseSendingLogs() | ||
``` | ||
|
||
Logs sending can be resumed by calling the following function: | ||
|
||
```swift | ||
LogseneResumeSendingLogs() | ||
``` | ||
|
||
Note that the logs that are in the buffer and were waiting to be sent at the time of pausing will not be sent until the logs sending process is resumed. | ||
|
||
Centralized Logging | ||
------------------- | ||
|
||
|