LoggingService

public class LoggingService : LinphoneObject

Singleton class giving access to logging features.

  • Undocumented

    Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> LoggingService
  • Undocumented

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • 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

  • Get the domain where application logs are written (for example with {@link LoggingService#message}).

    Declaration

    Swift

    public var domain: String { get set }
  • 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 }
  • Write a LinphoneLogLevelDebug message to the logs.

    Declaration

    Swift

    public func debug(msg: String)

    Parameters

    msg

    The log message.

  • Write a LinphoneLogLevelError message to the logs.

    Declaration

    Swift

    public func error(msg: String)

    Parameters

    msg

    The log message.

  • Write a LinphoneLogLevelFatal message to the logs.

    Declaration

    Swift

    public func fatal(msg: String)

    Parameters

    msg

    The log message.

  • Write a LinphoneLogLevelMessage message to the logs.

    Declaration

    Swift

    public func message(msg: String)

    Parameters

    msg

    The log message.

  • 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.

  • Write a LinphoneLogLevelTrace message to the logs.

    Declaration

    Swift

    public func trace(msg: String)

    Parameters

    msg

    The log message.

  • Write a LinphoneLogLevelWarning message to the logs.

    Declaration

    Swift

    public func warning(msg: String)

    Parameters

    msg

    The log message.