ConsoleLogger
public class ConsoleLogger : LSLogger
Concrete logger class to provide logging on the system console.
Instances of this classes are obtained by the library through the LSLoggerProvider instance set on LightstreamerClient.setLoggerProvider(...).
-
Creates an instace of the concrete system console logger.
Declaration
Swift
public init(level: ConsoleLogLevel, category: String)Parameters
levelThe desired logging level for this
ConsoleLoggerinstance.categoryThe log category all messages passed to the given
ConsoleLoggerinstance will pertain to. -
Declaration
Swift
public func error(_ line: String) -
Declaration
Swift
public func error(_ line: String, withException exception: Error) -
Declaration
Swift
public func warn(_ line: String) -
Declaration
Swift
public func warn(_ line: String, withException exception: Error) -
Declaration
Swift
public func info(_ line: String) -
Declaration
Swift
public func info(_ line: String, withException exception: Error) -
Declaration
Swift
public func debug(_ line: String) -
Declaration
Swift
public func debug(_ line: String, withException exception: Error) -
Declaration
Swift
public func trace(_ line: String) -
Declaration
Swift
public func trace(_ line: String, withException exception: Error) -
Declaration
Swift
public func fatal(_ line: String) -
Declaration
Swift
public func fatal(_ line: String, withException exception: Error) -
Declaration
Swift
public var isTraceEnabled: Bool { get } -
Declaration
Swift
public var isDebugEnabled: Bool { get } -
Declaration
Swift
public var isInfoEnabled: Bool { get } -
Declaration
Swift
public var isWarnEnabled: Bool { get } -
Declaration
Swift
public var isErrorEnabled: Bool { get } -
Declaration
Swift
public var isFatalEnabled: Bool { get }
ConsoleLogger Class Reference