Enums
The following enums are available globally.
-
Specifies the manner in which
See moreLogSeverity
values should be rendered by theSeverityLogFormatter
.Declaration
Swift
public enum SeverityStyle
-
Used to indicate the severity, or importance, of a log message.
Severity is a continuum, from
.verbose
being least severe to.error
being most severe.The logging system may be configured so that messages lower than a given severity are ignored.
See moreDeclaration
Swift
public enum LogSeverity: Int
-
Governs how a
See moreCallingThreadLogFormatter
will represent aLogEntry
‘scallingThreadID
.Declaration
Swift
public enum CallingThreadStyle
-
Encapsulates the various formatting styles that can be used by the
See moreTimestampLogFormatter
.Declaration
Swift
public enum TimestampStyle
-
Specifies the manner in which an
OSLogType
is selected to represent a givenLogEntry
.When a log entry is being recorded by an
OSLogRecorder
, anOSLogType
value is used to specify the importance of the message; it is similar in concept to theLogSeverity
.Because there is not an exact one-to-one mapping between
See moreOSLogType
andLogSeverity
values,OSLogTypeTranslation
provides a mechanism for deriving the appropriateOSLogType
for a givenLogEntry
.Declaration
Swift
public enum OSLogTypeTranslator
-
Allows the specification of different field delimiters.
See moreDeclaration
Swift
public enum DelimiterStyle