NSObject

extension NSObject: ClassNameProtocol

Extends the NSObject

  • Print to stdout current class and function names and optional info

    Note

    Printing is enabled by DEBUG constant which is normally absent from release builds.

    Requires

    to be called from a subclass of NSObject

    Declaration

    Swift

    func printClassAndFunc(info inf_: String = "", fnc fnc_: String = #function)
  • Print to log file current class and function names and optional info

    Requires

    to be called from a subclass of NSObject

    Declaration

    Swift

    func logClassAndFunc(info inf_: String = "", fnc fnc_: String = #function)
  • Return a string containing current class and function names and optional info

    Requires

    to be called from a subclass of NSObject

    Declaration

    Swift

    func formatClassAndFunc(info inf_: String = "", fnc fnc_: String = #function) -> String
  • Return dateTimeString with microsecond resolution

    Declaration

    Swift

    func dateTimeString() -> String