ConsoleTargetConfig
public struct ConsoleTargetConfig
Immutable struct used to encapsulate consolet target configuration values.
-
Subsystem name value assigned during initialization. Used for OSLog configuration.
Declaration
Swift
public let subsystem: String
-
Category name value assigned during initialization. Used for OSLog configuration.
Declaration
Swift
public let category: String
-
Minimum log levlel to be logged.
Declaration
Swift
public let level: LogLevel
-
Logging style value assigned during initialization.
Declaration
Swift
public let style: Style
-
Initialzes configuration struct with provided values.
Declaration
Parameters
subsystem
title of OSLog subsystem. Helps to distinguish logs within Console logs. Defaults to:
logr.subsystem
category
title of OSLog category. Helps to distinguish logs within Console logs. Defaults to:
ConsoleTarget
level
lowest log level which shall be logged.
style
logging style. Defaults to:
minimal