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
@@ -72,7 +66,7 @@ public enum StackdriverLogHandlerFactory {
72
66
73
67
}
74
68
75
-
/// A `LogHandler` to log json to GCP Stackdriver using a fluentd config and the GCP logging-assistant.
69
+
/// `LogHandler` to log JSON to GCP Stackdriver using a fluentd config and the GCP logging-assistant.
76
70
/// Use the `MetadataValue.stringConvertible` case to log non-string JSON values supported by JSONSerializer like NSNull, Bool, Int, Float/Double, NSNumber, etc.
77
71
/// The `MetadataValue.stringConvertible` type will also take care of automatically logging `Date` as an iso8601 timestamp and `Data` as a base64
78
72
/// encoded `String`.
@@ -95,14 +89,11 @@ public struct StackdriverLogHandler: LogHandler {
public subscript(metadataKey key:String)->Logger.Metadata.Value?{
@@ -132,13 +123,12 @@ public struct StackdriverLogHandler: LogHandler {
132
123
assert(json["message"]==nil,"'message' is a metadata field reserved by Stackdriver, your custom 'message' metadata value will be overriden in production")
133
124
assert(json["severity"]==nil,"'severity' is a metadata field reserved by Stackdriver, your custom 'severity' metadata value will be overriden in production")
134
125
assert(json["sourceLocation"]==nil,"'sourceLocation' is a metadata field reserved by Stackdriver, your custom 'sourceLocation' metadata value will be overriden in production")
126
+
assert(json["timestamp"]==nil,"'timestamp' is a metadata field reserved by Stackdriver, your custom 'timestamp' metadata value will be overriden in production")
0 commit comments