Supporting Types
Miscellaneous types that support various functionality of TraceLog.
-
The system wide modes that TraceLog can run in. Used to configure a mode globally at configure time.
See also
TraceLog.configure(mode:writers:environment:)
for usage.Declaration
Swift
public enum ConcurrencyMode
-
Mode to run a specific Writer in. Used to wrap a writer to change the specific mode it operates in.
See also
TraceLog.configure(writers:environment:)
for usage.Declaration
Swift
public enum WriterConcurrencyMode
-
Async mode can be configured for various options, this enum allows you to refine the behavior and options of the asynchronous mode of operation.
See also
ConcurrencyMode.async(options:)
for for more information about usage.See also
WriterConcurrencyMode.async(_:options:)
for for more information about usage.Declaration
Swift
public enum AsyncConcurrencyModeOption
-
A class that is used to capture and represent the os environment variables.
This class can be passed to TraceLog.
configure(mode:writers:environment:)
methods to configure it using the current Environment settings.Environment is also like a Swift Dictionary
so it can be used just like a dictionary including subscripting. See also
TraceLog.configure(mode:writers:environment:)
for usage.See also
TraceLog.configure(writers:environment:)
for usage.Declaration
Swift
public class Environment : Collection, ExpressibleByDictionaryLiteral
-
LogLevels represent the logging level defined by TraceLog. These parallel the environment variables that can be set to configure TraceLog.
See moreDeclaration
Swift
public enum LogLevel : Int, CaseIterable, Comparable
-
Static context captured at the time of the log statement
See moreDeclaration
Swift
public protocol StaticContext
-
Runtime context captured at the time of the log statement
See moreDeclaration
Swift
public protocol RuntimeContext
-
Allowable Errors returned from
See moreOutputStreamFormatter
.bytes(from:)
methods.Declaration
Swift
public enum OutputStreamFormatterError : Error
-
Declaration
Swift
public enum FailureReason : Error