CocoaDebug 用法

2021-10-19  本文已影响0人  nick5683

官方网站地址:https://github.com/CocoaDebug/CocoaDebug

因为网络原因,建议访问 https://gitee.com/nick5683/CocoaDebug

pod'CocoaDebug', :git => 'https://gitee.com/nick5683/CocoaDebug', :configurations => ['Debug']
    //Step 1.

    #if DEBUG
        import CocoaDebug
    #endif

    //Step 2.
    #if DEBUG
        CocoaDebug.enable()
    #endif

    //Step 3.

    public func MYLog<T>(file: String = #file, function: String = #function, line: Int = #line, _ message: T, color: UIColor = .white) {
        #if DEBUG
        print(message)
        #endif
    }
上一篇下一篇

猜你喜欢

热点阅读