3.5. SMLogger

This class provides the function which outputs the StarIO.xcframework and StarIO_Extension.xcframework logs. Use of this Log function may have some influences on performance of your application.

Note

When inquiring using the logs recorded by this class, please also provide the date and time of the event that may have caused the problem.

  • Constants

    Name Description
    SMLogLevel Constant that specifies the log level.
  • Property

    Name Description
    logLevel Sets or gets the log level.
    isLogging Gets whether log output has started or not.
  • Method

    Name Description
    start Starts log output.
    stop Stops log output.
    logString Outputs log of the desired string.

3.5.1. SMLogLevel

Constant that specifies the log output level.

  • Declaration

    public enum SMLogLevel : Int {
       case default
    }
    
  • Constants

    Name Description
    default Default level

3.5.2. logLevel

Sets or gets the log level.

  • Declaration

    open var logLevel: SMLogLevel
    
  • Value

    Description Object type
    Log level SMLogLevel

3.5.3. isLogging

Gets whether log output has started or not.

  • Declaration

    open var isLogging: Bool { get }
    
  • Value

    Description Object type
    Whether log output has started or not Bool

3.5.4. start

Starts log output.

  • Declaration

    open func start()
    
  • Parameter

    None

  • Return value

    None

3.5.5. stop

Stops log output.

  • Declaration

    open func stop()
    
  • Parameter

    None

  • Return value

    None

3.5.6. logString

Outputs log of the desired string.

  • Declaration

    open func log(_ string: String)
    
  • Parameter

    Name Description Object type
    string String for log output String
  • Return value

    None