diff --git a/Documentation/API/Enums/OSLogTypeTranslator.html b/Documentation/API/Enums/OSLogTypeTranslator.html index 9bc5f203..e0f3ee57 100644 --- a/Documentation/API/Enums/OSLogTypeTranslator.html +++ b/Documentation/API/Enums/OSLogTypeTranslator.html @@ -226,6 +226,69 @@
+
+
+ default
+
+ The most direct translation from a LogEntry
’s severity
to the
+ corresponding OSLogType
value.
This value strikes a sensible balance between the higher-overhead logging
+ provided by .strict
and the more ephemeral logging of .relaxed
.
LogSeverity | +OSLogType | +
---|---|
.verbose |
+.debug |
+
.debug |
+.debug |
+
.info |
+.info |
+
.warning |
+.default |
+
.error |
+.error |
+
Swift
+case `default`
+
+ A strict translation from a LogEntry
’s severity
to an
- OSLogType
value. Warnings are treated as errors.
OSLogType
value. Warnings are treated as errors; errors are
+ treated as faults.
+
+This will result in additional logging overhead being recorded by OSLog, + and is not recommended unless you have a specific need for this.
.info |
-.default |
+.default |
||||||||||||||||||||||||||||||||
.warning |
@@ -302,7 +369,10 @@
.info |
-.default |
+.info |
.warning |
-.default |
+.default |
.error |
-.error |
+.default |
Swift
-public init?(formatters: [LogFormatter], subsystem: String = "", logTypeTranslator: OSLogTypeTranslator = .strict, queue: DispatchQueue? = nil)
+ public init?(formatters: [LogFormatter], subsystem: String = "", logTypeTranslator: OSLogTypeTranslator = .default, queue: DispatchQueue? = nil)
+
+
+ default
+
+ The most direct translation from a LogEntry
’s severity
to the
+ corresponding OSLogType
value.
This value strikes a sensible balance between the higher-overhead logging
+ provided by .strict
and the more ephemeral logging of .relaxed
.
LogSeverity | +OSLogType | +
---|---|
.verbose |
+.debug |
+
.debug |
+.debug |
+
.info |
+.info |
+
.warning |
+.default |
+
.error |
+.error |
+
Swift
+case `default`
+
+ A strict translation from a LogEntry
’s severity
to an
- OSLogType
value. Warnings are treated as errors.
OSLogType
value. Warnings are treated as errors; errors are
+ treated as faults.
+
+This will result in additional logging overhead being recorded by OSLog, + and is not recommended unless you have a specific need for this.
.info |
-.default |
+.default |
|||||||
.warning |
@@ -302,7 +369,10 @@
.info |
-.default |
+.info |
.warning |
-.default |
+.default |
.error |
-.error |
+.default |
Swift
-public init?(formatters: [LogFormatter], subsystem: String = "", logTypeTranslator: OSLogTypeTranslator = .strict, queue: DispatchQueue? = nil)
+ public init?(formatters: [LogFormatter], subsystem: String = "", logTypeTranslator: OSLogTypeTranslator = .default, queue: DispatchQueue? = nil)