Skip to content

Commit 2609f7a

Browse files
authored
[Structured Logging] Rename SentryLog to SentrySDKLog (#5473)
1 parent fdea6f5 commit 2609f7a

File tree

142 files changed

+514
-458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+514
-458
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
### Features
4141

4242
- Capturing fatal CPPExceptions via hooking into cxa_throw when enabling `options.experimental.enableUnhandledCPPExceptionsV2 = true` (#5256)
43+
- [Structured Logging] Models + Preparation ([#5441](https://github.com/getsentry/sentry-cocoa/pull/5441))
4344

4445
### Fixes
4546

Sentry.xcodeproj/project.pbxproj

Lines changed: 26 additions & 20 deletions
Large diffs are not rendered by default.

SentryTestUtils/ClearTestState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TestCleanup: NSObject {
3131
PrivateSentrySDKOnly.appStartMeasurementHybridSDKMode = false
3232
SentryNetworkTracker.sharedInstance.disable()
3333

34-
SentryLog.setDefaultTestLogConfiguration()
34+
SentrySDKLog.setDefaultTestLogConfiguration()
3535

3636
#if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst)
3737

SentryTestUtils/SentryLogExtensions.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import Foundation
22
@_spi(Private) @testable import Sentry
33

4-
extension SentryLog {
4+
extension SentrySDKLog {
55

66
public static func setDefaultTestLogConfiguration() {
7-
SentryLog._configure(false, diagnosticLevel: .error)
7+
SentrySDKLog._configure(false, diagnosticLevel: .error)
88
}
99

1010
/// SentryLog uses NSLog internally, which can significantly slow down code because it requires
1111
/// synchronization. Use this method sparingly for individual test cases.
1212
public static func withDebugLogs<T>(_ closure: () throws -> T) rethrows -> T {
1313
defer { setDefaultTestLogConfiguration() }
14-
SentryLog._configure(true, diagnosticLevel: .debug)
14+
SentrySDKLog._configure(true, diagnosticLevel: .debug)
1515
return try closure()
1616
}
1717

SentryTestUtils/SentryTestUtils-ObjC-BridgingHeader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#import "SentryGlobalEventProcessor.h"
4545
#import "SentryHub+Private.h"
4646
#import "SentryHub+Test.h"
47-
#import "SentryLog.h"
47+
#import "SentryLogC.h"
4848
#import "SentryNSNotificationCenterWrapper.h"
4949
#import "SentryNSProcessInfoWrapper.h"
5050
#import "SentryNSTimerFactory.h"

Sources/Sentry/Processors/SentryWatchdogTerminationBreadcrumbProcessor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#import "SentryWatchdogTerminationBreadcrumbProcessor.h"
22
#import "SentryFileManager.h"
3-
#import "SentryLog.h"
3+
#import "SentryLogC.h"
44
#import "SentrySerialization.h"
55

66
@interface SentryWatchdogTerminationBreadcrumbProcessor ()

Sources/Sentry/Profiling/SentryContinuousProfiler.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#if SENTRY_TARGET_PROFILING_SUPPORTED
44

55
# import "SentryDependencyContainer.h"
6-
# import "SentryLog.h"
6+
# import "SentryLogC.h"
77
# import "SentryMetricProfiler.h"
88
# import "SentryNSNotificationCenterWrapper.h"
99
# import "SentryNSTimerFactory.h"

Sources/Sentry/Profiling/SentryLaunchProfiling.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# import "SentryFileManager.h"
88
# import "SentryInternalDefines.h"
99
# import "SentryLaunchProfiling.h"
10-
# import "SentryLog.h"
10+
# import "SentryLogC.h"
1111
# import "SentryOptions+Private.h"
1212
# import "SentryProfiler+Private.h"
1313
# import "SentryRandom.h"
@@ -212,7 +212,7 @@
212212
// quick and dirty way to get debug logging this early in the process run. this will get
213213
// overwritten once SentrySDK.startWithOptions is called according to the values of
214214
// SentryOptions.debug and SentryOptions.diagnosticLevel
215-
[SentryLogSwiftSupport configure:YES diagnosticLevel:kSentryLevelDebug];
215+
[SentrySDKLogSupport configure:YES diagnosticLevel:kSentryLevelDebug];
216216
# endif // defined(DEBUG)
217217

218218
NSDictionary<NSString *, NSNumber *> *launchConfig = sentry_appLaunchProfileConfiguration();

Sources/Sentry/Profiling/SentryProfiledTracerConcurrency.mm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# import "SentryContinuousProfiler.h"
66
# import "SentryInternalDefines.h"
7-
# import "SentryLog.h"
7+
# import "SentryLogC.h"
88
# import "SentryOptions+Private.h"
99
# import "SentryProfiler+Private.h"
1010
# import "SentrySwift.h"
@@ -15,7 +15,6 @@
1515
# import "SentryHub+Private.h"
1616
# import "SentryInternalDefines.h"
1717
# import "SentryLaunchProfiling.h"
18-
# import "SentryLog.h"
1918
# import "SentryOptions+Private.h"
2019
# import "SentryProfiledTracerConcurrency.h"
2120
# import "SentryProfiler+Private.h"

Sources/Sentry/Profiling/SentryProfilerSerialization.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# import "SentryEvent+Private.h"
1414
# import "SentryFormatter.h"
1515
# import "SentryInternalDefines.h"
16-
# import "SentryLog.h"
16+
# import "SentryLogC.h"
1717
# import "SentryMeta.h"
1818
# import "SentryMetricProfiler.h"
1919
# import "SentryProfileTimeseries.h"

0 commit comments

Comments
 (0)