https://github.com/janlionly/logview
Put your interesting logs into view for showing.
https://github.com/janlionly/logview
ios log logviewer swift
Last synced: 10 months ago
JSON representation
Put your interesting logs into view for showing.
- Host: GitHub
- URL: https://github.com/janlionly/logview
- Owner: janlionly
- License: mit
- Created: 2021-09-28T06:20:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-21T03:12:20.000Z (over 4 years ago)
- Last Synced: 2025-08-30T04:38:33.125Z (10 months ago)
- Topics: ios, log, logviewer, swift
- Language: Swift
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LogView
[](https://cocoapods.org/pods/LogView)
[](https://github.com/janlionly/LogView/blob/master/LICENSE)
[](https://github.com/janlionly/LogView)


## Description
**LogView** is a debugging tool view, you can put your interesting logs into view for showing, it support to pan for moving and show/hide using your two finger double tap.
## Installation
### CocoaPods
```ruby
pod 'LogView'
```
### Swift Package Manager
- iOS: Open Xcode, File->Swift Packages, search input **https://github.com/janlionly/LogView.git**, and then select Version Up to Next Major **1.1.2** < .
- Or add dependencies in your `Package.swift`:
```swift
.package(url: "https://github.com/janlionly/LogView.git", .upToNextMajor(from: "1.1.2")),
```
## Usage
```swift
// switch
LogView.shared.isDebug = true
DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {
let logView = LogView.shared
// optional: your can customize initial frame
logView.frame = CGRect(x:0, y:0, width: 200, height: 300)
// make logView visible. Just call it only if the logView donot show.
logView.makeVisible()
// append your logs
logView.append(log: "REQUEST API: xxx")
}
```
## Requirements
- iOS 9.0+
- Swift 4.2 to 5.0+
## Author
Visit my github: [janlionly](https://github.com/janlionly)
Contact with me by email: janlionly@gmail.com
## Contribute
I would love you to contribute to **LogView**
## License
**LogView** is available under the MIT license. See the [LICENSE](https://github.com/janlionly/LogView/blob/master/LICENSE) file for more info.