This commit is contained in:
DDIsFriend
2023-08-18 17:28:57 +08:00
commit f0e8a1709d
4282 changed files with 192396 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
//
// DDOCLog.h
// DDLogKit_Private
// Created by DDIsFriend on 2023/2/7.
#ifndef DDOCLog_h
#define DDOCLog_h
#ifdef __OBJC__
#ifndef DDLog
#define DDLog(format, ...) NSLog((@"[函数名:%s]\n[内容:" format @"]"),__FUNCTION__, ##__VA_ARGS__);
#endif
#endif
#endif /* DDOCLog_h */

View File

@@ -0,0 +1,16 @@
//
// DDSwiftLog.swift
// DDLogKit_Private
// Created by DDIsFriend on 2023/2/7.
import Foundation
public func DDLog<N>(message:N,fileName:String = #file,methodName:String = #function,lineNumber:Int = #line){
#if DEBUG
// print("\(fileName as NSString)\n:\(methodName)\n:\(lineNumber)\n\(message)")
print("[函数名:\(fileName as NSString) - \(methodName)]\n[内容:\(message)]")
// NSLog("[:\(fileName as NSString) - \(methodName)]\n[:\(message)]")
#endif
}

19
Pods/DDLogKit_Private/LICENSE generated Normal file
View File

@@ -0,0 +1,19 @@
Copyright (c) 2023 DDIsFriend <DDIsFriend@163.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

29
Pods/DDLogKit_Private/README.md generated Normal file
View File

@@ -0,0 +1,29 @@
# DDLogKit_Private
[![CI Status](https://img.shields.io/travis/DDIsFriend/DDLogKit_Private.svg?style=flat)](https://travis-ci.org/DDIsFriend/DDLogKit_Private)
[![Version](https://img.shields.io/cocoapods/v/DDLogKit_Private.svg?style=flat)](https://cocoapods.org/pods/DDLogKit_Private)
[![License](https://img.shields.io/cocoapods/l/DDLogKit_Private.svg?style=flat)](https://cocoapods.org/pods/DDLogKit_Private)
[![Platform](https://img.shields.io/cocoapods/p/DDLogKit_Private.svg?style=flat)](https://cocoapods.org/pods/DDLogKit_Private)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
DDLogKit_Private is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'DDLogKit_Private'
```
## Author
DDIsFriend, DDIsFriend@163.com
## License
DDLogKit_Private is available under the MIT license. See the LICENSE file for more info.