MNPrint

@objc
open class MNPrint : NSObject

Encapsulates information regarding information logged for debugging purposes.

  • Declaration

    Swift

    public enum Module : String
  • Declaration

    Swift

    @objc
    public enum Level : Int
  • Print function used in Swift. For calling function in objective-c, please use objcP:l:f:t instead.

    Print will only log message under debug mode and will abort the process for critial errors.

    Declaration

    Swift

    public static func p(l: Level, file: String = #file, function: String = #function, line: Int = #line, t: String)

    Parameters

    l

    Log level.

    file

    [Optional] File name for the print.

    function

    [Optional] Function name for the print.

    line

    [Optional] Line number for the print.

    t

    Text message or error message

  • Print function used in Objective-C. Please only use this print inside objective-c. For swift print, use p:l:t.

    Print will only log message under debug mode and will abort the process for critial errors.

    Declaration

    Swift

    @objc
    public static func objcP(l: Level, f: String, t: String)

    Parameters

    l

    Log level.

    f

    File and function for the print.

    t

    Text message or error message.

  • Declaration

    Swift

    static func cppPrint(_ string: String)