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.

  • Constant

    Name

    Contents

    SMLogLevel

    Constant that specifies the log level.

  • Property

    Name

    Contents

    logLevel

    Sets or gets the log level.

    isLogging

    Gets whether log output has started or not.

  • Method

    Name

    Contents

    start

    Starts log output.

    stop

    Stops log output.

    logString

    Outputs log of the desired string.

3.5.1. SMLogLevel

Constant that specifies the log level.

  • Declaration

    public enum SMLogLevel : Int {
       case default
    }
    
  • Constants

    Name

    Contents

    default

    Default level

3.5.2. logLevel

Sets or gets the log level.

  • Declaration

    open var logLevel: SMLogLevel
    
  • Value

    Contents

    Type

    Log Level

    SMLogLevel

3.5.3. isLogging

Gets whether log output has started or not.

  • Declaration

    open var isLogging: Bool { get }
    
  • Value

    Contents

    Type

    Shows 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

    Contents

    Type

    string

    String for log output

    String

  • Return value

    None