Fix log directory so that the app extension logs are written in the same files as the application log

This commit is contained in:
QuentinArguillere 2022-01-21 16:21:56 +01:00
parent ee8acb5e16
commit a6fb4e42b7
2 changed files with 39 additions and 8 deletions

View file

@ -3,13 +3,44 @@ All notable changes to this project will be documented in this file.
Group changes to describe their impact on the project, as follows: Group changes to describe their impact on the project, as follows:
Added for new features. Added for new features.
Changed for changes in existing functionality. Changed for changes in existing functionality.
Deprecated for once-stable features removed in upcoming releases. Deprecated for once-stable features removed in upcoming releases.
Removed for deprecated features removed in this release. Removed for deprecated features removed in this release.
Fixed for any bug fixes. Fixed for any bug fixes.
Security to invite users to upgrade in case of vulnerabilities. Security to invite users to upgrade in case of vulnerabilities.
## [4.6.0] - 2021-31-02
### Added
### Changed
### Fixed
(6) Clickable links in chat bubbles
(6) "sips" account when transport is tls
(6) app extension logs missing when exporting logs
## [4.5.0] - 2021-07-08
### Added
- Add option to enable VFS
- Ephemeral messages (beta)
### Changed
- Updating SDK to 5.0 version
- Using linphone SDK 5.0 API to better handle audio route
- Replaced all notions of "Proxy configs" with "Accounts" from the 5.0 SDK
- Removed most of the code related to remote and VOIP Push Notification receptions, now handled in the SDK
- No longer pause all calls when receiving a new call.
- No longer switch to speaker during video call if another output device (bluetooth headset) is already connected
- When answering a video call while the phone is locked, send the "No camera available" image until the video is enabled through the CallKit button
- Chat messages containing both text and file are now displayed in the same chat bubble
### Fixed
- Fix several memory leaks
- Various crashs and issues.
- When the App is started through a Push Notification, properly redirect the view to the corresponding chat rather than going to the home page
## [4.4.0] - 2021-03-30 ## [4.4.0] - 2021-03-30
@ -66,7 +97,7 @@ Group changes to describe their impact on the project, as follows:
### Fixed ### Fixed
- Automatically downloaded images are copied when shared in a chat room. - Automatically downloaded images are copied when shared in a chat room.
- Some UI errors from ios 13. - Some UI errors from ios 13.
## [4.1.0] - 2019-05-06 ## [4.1.0] - 2019-05-06
### Added ### Added

View file

@ -33,7 +33,7 @@ class LinphoneLoggingServiceManager: LoggingServiceDelegate {
let debugLevel = config.getInt(section: "app", key: "debugenable_preference", defaultValue: LogLevel.Debug.rawValue) let debugLevel = config.getInt(section: "app", key: "debugenable_preference", defaultValue: LogLevel.Debug.rawValue)
let debugEnabled = (debugLevel >= LogLevel.Debug.rawValue && debugLevel < LogLevel.Error.rawValue) let debugEnabled = (debugLevel >= LogLevel.Debug.rawValue && debugLevel < LogLevel.Error.rawValue)
Factory.Instance.logCollectionPath = Factory.Instance.getDownloadDir(context: UnsafeMutablePointer<Int8>(mutating: (APP_GROUP_ID as NSString).utf8String)) Factory.Instance.logCollectionPath = Factory.Instance.getDataDir(context: UnsafeMutablePointer<Int8>(mutating: (APP_GROUP_ID as NSString).utf8String))
Factory.Instance.enableLogCollection(state: debugEnabled ? LogCollectionState.Enabled : LogCollectionState.Disabled) Factory.Instance.enableLogCollection(state: debugEnabled ? LogCollectionState.Enabled : LogCollectionState.Disabled)
log.domain = domain log.domain = domain
log.logLevel = debugLevel==0 ? LogLevel.Fatal : LogLevel(rawValue: debugLevel) log.logLevel = debugLevel==0 ? LogLevel.Fatal : LogLevel(rawValue: debugLevel)