LoggingService
public class LoggingService : LinphoneObject
Singleton class giving access to logging features.
-
Undocumented
Declaration
Swift
public func getDelegate() -> LoggingServiceDelegate?
-
Undocumented
Declaration
Swift
public func addDelegate(delegate: LoggingServiceDelegate)
-
Undocumented
Declaration
Swift
public func removeDelegate(delegate: LoggingServiceDelegate)
-
Gets the singleton logging service object. The singleton is automatically instantiated if it hasn’t been done yet.
Declaration
Swift
public static var Instance: LoggingService { get }
Return Value
A pointer on the singleton.
-
Returns the current callbacks being called while iterating on callbacks.
Declaration
Swift
public var currentCallbacks: LoggingServiceDelegate? { get }
Return Value
A pointer to the current LinphoneLoggingServiceCbs object
-
Set the verbosity of the log. For instance, a level of LinphoneLogLevelMessage will let pass fatal, error, warning and message-typed messages whereas trace and debug messages will be dumped out.
Declaration
Swift
public var logLevel: LogLevel? { get set }
-
Gets the log level mask.
Declaration
Swift
public var logLevelMask: UInt { get set }
-
Enables logging in a file. That function enables an internal log handler that writes log messages in log-rotated files.
Declaration
Swift
public func setLogFile(dir: String, filename: String, maxSize: Int)
Parameters
dir
Directory where to create the distinct parts of the log.
filename
Name of the log file.
maxSize
The maximal size of each part of the log. The log rotating is triggered each time the currently opened log part reach that limit.