Skip to content

Commit 4773cd8

Browse files
authored
Rename SentryLog.Level and SentryLog.Attribute for ObjC (#6666)
1 parent 8bccc72 commit 4773cd8

File tree

4 files changed

+34
-33
lines changed

4 files changed

+34
-33
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
- The precompiled XCFramework is now built with Xcode 16. To submit to the App Store, [Apple now requires Xcode 16](https://developer.apple.com/news/upcoming-requirements/?id=02212025a).
3838
If you need a precompiled XCFramework built with Xcode 15, continue using Sentry SDK 8.x.x.
3939
- Set `SentryException.type` to `nil` when `NSException` has no `reason` (#6653). The backend then can provide a proper message when there is no reason.
40+
- Rename `SentryLog.Level` and `SentryLog.Attribute` for ObjC (#6666)
4041

4142
### Features
4243

Sources/Swift/Protocol/SentryLogAttribute.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extension SentryLog {
33
///
44
/// `Attribute` provides a type-safe way to store structured data alongside log messages.
55
/// Supports String, Bool, Int, and Double types.
6-
@objc(SentryStructuredLogAttribute)
6+
@objc(SentryLogAttribute)
77
@objcMembers
88
public final class Attribute: NSObject {
99
/// The type identifier for this attribute ("string", "boolean", "integer", "double")

Sources/Swift/Protocol/SentryLogLevel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ extension SentryLog {
33
///
44
/// Log levels are ordered by severity from least (`trace`) to most severe (`fatal`).
55
/// Each level corresponds to a numeric severity value following the OpenTelemetry specification.
6-
@objc(SentryStructuredLogLevel)
6+
@objc(SentryLogLevel)
77
public enum Level: Int {
88
case trace
99
case debug

sdk_api.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10751,7 +10751,7 @@
1075110751
"kind": "TypeNominal",
1075210752
"name": "Level",
1075310753
"printedName": "Sentry.Level",
10754-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10754+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1075510755
}
1075610756
],
1075710757
"usr": "s:Sq"
@@ -10764,8 +10764,8 @@
1076410764
}
1076510765
],
1076610766
"declKind": "Constructor",
10767-
"usr": "s:So24SentryStructuredLogLevelV8rawValueABSgSi_tcfc",
10768-
"mangledName": "$sSo24SentryStructuredLogLevelV8rawValueABSgSi_tcfc",
10767+
"usr": "s:So14SentryLogLevelV8rawValueABSgSi_tcfc",
10768+
"mangledName": "$sSo14SentryLogLevelV8rawValueABSgSi_tcfc",
1076910769
"moduleName": "Sentry",
1077010770
"implicit": true,
1077110771
"init_kind": "Designated"
@@ -10783,8 +10783,8 @@
1078310783
}
1078410784
],
1078510785
"declKind": "Var",
10786-
"usr": "s:So24SentryStructuredLogLevelV8rawValueSivp",
10787-
"mangledName": "$sSo24SentryStructuredLogLevelV8rawValueSivp",
10786+
"usr": "s:So14SentryLogLevelV8rawValueSivp",
10787+
"mangledName": "$sSo14SentryLogLevelV8rawValueSivp",
1078810788
"moduleName": "Sentry",
1078910789
"implicit": true,
1079010790
"accessors": [
@@ -10801,8 +10801,8 @@
1080110801
}
1080210802
],
1080310803
"declKind": "Accessor",
10804-
"usr": "s:So24SentryStructuredLogLevelV8rawValueSivg",
10805-
"mangledName": "$sSo24SentryStructuredLogLevelV8rawValueSivg",
10804+
"usr": "s:So14SentryLogLevelV8rawValueSivg",
10805+
"mangledName": "$sSo14SentryLogLevelV8rawValueSivg",
1080610806
"moduleName": "Sentry",
1080710807
"implicit": true,
1080810808
"accessorKind": "get"
@@ -10822,8 +10822,8 @@
1082210822
}
1082310823
],
1082410824
"declKind": "TypeAlias",
10825-
"usr": "s:So24SentryStructuredLogLevelV8RawValuea",
10826-
"mangledName": "$sSo24SentryStructuredLogLevelV8RawValuea",
10825+
"usr": "s:So14SentryLogLevelV8RawValuea",
10826+
"mangledName": "$sSo14SentryLogLevelV8RawValuea",
1082710827
"moduleName": "Sentry",
1082810828
"implicit": true
1082910829
},
@@ -10841,7 +10841,7 @@
1084110841
"kind": "TypeNominal",
1084210842
"name": "Level",
1084310843
"printedName": "Sentry.Level",
10844-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10844+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1084510845
},
1084610846
{
1084710847
"kind": "TypeNominal",
@@ -10852,15 +10852,15 @@
1085210852
"kind": "TypeNominal",
1085310853
"name": "Level",
1085410854
"printedName": "Sentry.Level",
10855-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10855+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1085610856
}
1085710857
]
1085810858
}
1085910859
]
1086010860
}
1086110861
],
1086210862
"declKind": "EnumElement",
10863-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel@SentryStructuredLogLevelTrace",
10863+
"usr": "c:@M@Sentry@E@SentryLogLevel@SentryLogLevelTrace",
1086410864
"moduleName": "Sentry",
1086510865
"declAttributes": [
1086610866
"ObjC"
@@ -10880,7 +10880,7 @@
1088010880
"kind": "TypeNominal",
1088110881
"name": "Level",
1088210882
"printedName": "Sentry.Level",
10883-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10883+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1088410884
},
1088510885
{
1088610886
"kind": "TypeNominal",
@@ -10891,15 +10891,15 @@
1089110891
"kind": "TypeNominal",
1089210892
"name": "Level",
1089310893
"printedName": "Sentry.Level",
10894-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10894+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1089510895
}
1089610896
]
1089710897
}
1089810898
]
1089910899
}
1090010900
],
1090110901
"declKind": "EnumElement",
10902-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel@SentryStructuredLogLevelDebug",
10902+
"usr": "c:@M@Sentry@E@SentryLogLevel@SentryLogLevelDebug",
1090310903
"moduleName": "Sentry",
1090410904
"declAttributes": [
1090510905
"ObjC"
@@ -10919,7 +10919,7 @@
1091910919
"kind": "TypeNominal",
1092010920
"name": "Level",
1092110921
"printedName": "Sentry.Level",
10922-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10922+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1092310923
},
1092410924
{
1092510925
"kind": "TypeNominal",
@@ -10930,15 +10930,15 @@
1093010930
"kind": "TypeNominal",
1093110931
"name": "Level",
1093210932
"printedName": "Sentry.Level",
10933-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10933+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1093410934
}
1093510935
]
1093610936
}
1093710937
]
1093810938
}
1093910939
],
1094010940
"declKind": "EnumElement",
10941-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel@SentryStructuredLogLevelInfo",
10941+
"usr": "c:@M@Sentry@E@SentryLogLevel@SentryLogLevelInfo",
1094210942
"moduleName": "Sentry",
1094310943
"declAttributes": [
1094410944
"ObjC"
@@ -10958,7 +10958,7 @@
1095810958
"kind": "TypeNominal",
1095910959
"name": "Level",
1096010960
"printedName": "Sentry.Level",
10961-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10961+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1096210962
},
1096310963
{
1096410964
"kind": "TypeNominal",
@@ -10969,15 +10969,15 @@
1096910969
"kind": "TypeNominal",
1097010970
"name": "Level",
1097110971
"printedName": "Sentry.Level",
10972-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
10972+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1097310973
}
1097410974
]
1097510975
}
1097610976
]
1097710977
}
1097810978
],
1097910979
"declKind": "EnumElement",
10980-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel@SentryStructuredLogLevelWarn",
10980+
"usr": "c:@M@Sentry@E@SentryLogLevel@SentryLogLevelWarn",
1098110981
"moduleName": "Sentry",
1098210982
"declAttributes": [
1098310983
"ObjC"
@@ -10997,7 +10997,7 @@
1099710997
"kind": "TypeNominal",
1099810998
"name": "Level",
1099910999
"printedName": "Sentry.Level",
11000-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
11000+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1100111001
},
1100211002
{
1100311003
"kind": "TypeNominal",
@@ -11008,15 +11008,15 @@
1100811008
"kind": "TypeNominal",
1100911009
"name": "Level",
1101011010
"printedName": "Sentry.Level",
11011-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
11011+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1101211012
}
1101311013
]
1101411014
}
1101511015
]
1101611016
}
1101711017
],
1101811018
"declKind": "EnumElement",
11019-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel@SentryStructuredLogLevelError",
11019+
"usr": "c:@M@Sentry@E@SentryLogLevel@SentryLogLevelError",
1102011020
"moduleName": "Sentry",
1102111021
"declAttributes": [
1102211022
"ObjC"
@@ -11036,7 +11036,7 @@
1103611036
"kind": "TypeNominal",
1103711037
"name": "Level",
1103811038
"printedName": "Sentry.Level",
11039-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
11039+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1104011040
},
1104111041
{
1104211042
"kind": "TypeNominal",
@@ -11047,25 +11047,25 @@
1104711047
"kind": "TypeNominal",
1104811048
"name": "Level",
1104911049
"printedName": "Sentry.Level",
11050-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel"
11050+
"usr": "c:@M@Sentry@E@SentryLogLevel"
1105111051
}
1105211052
]
1105311053
}
1105411054
]
1105511055
}
1105611056
],
1105711057
"declKind": "EnumElement",
11058-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel@SentryStructuredLogLevelFatal",
11058+
"usr": "c:@M@Sentry@E@SentryLogLevel@SentryLogLevelFatal",
1105911059
"moduleName": "Sentry",
1106011060
"declAttributes": [
1106111061
"ObjC"
1106211062
]
1106311063
}
1106411064
],
1106511065
"declKind": "Enum",
11066-
"usr": "c:@M@Sentry@E@SentryStructuredLogLevel",
11066+
"usr": "c:@M@Sentry@E@SentryLogLevel",
1106711067
"moduleName": "Sentry",
11068-
"objc_name": "SentryStructuredLogLevel",
11068+
"objc_name": "SentryLogLevel",
1106911069
"declAttributes": [
1107011070
"SynthesizedProtocol",
1107111071
"ObjC",
@@ -42111,7 +42111,7 @@
4211142111
"usr": "s:6Sentry0A3LogC5LevelO",
4211242112
"mangledName": "$s6Sentry0A3LogC5LevelO",
4211342113
"moduleName": "Sentry",
42114-
"objc_name": "SentryStructuredLogLevel",
42114+
"objc_name": "SentryLogLevel",
4211542115
"declAttributes": [
4211642116
"ObjC"
4211742117
],
@@ -42423,7 +42423,7 @@
4242342423
"usr": "s:6Sentry0A3LogC9AttributeC",
4242442424
"mangledName": "$s6Sentry0A3LogC9AttributeC",
4242542425
"moduleName": "Sentry",
42426-
"objc_name": "SentryStructuredLogAttribute",
42426+
"objc_name": "SentryLogAttribute",
4242742427
"declAttributes": [
4242842428
"Final",
4242942429
"ObjCMembers",

0 commit comments

Comments
 (0)