https://github.com/erkanyildiz/eylogtextview
A simple viewer to see your app's logs on your iDevice in realtime.
https://github.com/erkanyildiz/eylogtextview
debugging idevice ios log logger objective-c viewer
Last synced: about 1 year ago
JSON representation
A simple viewer to see your app's logs on your iDevice in realtime.
- Host: GitHub
- URL: https://github.com/erkanyildiz/eylogtextview
- Owner: erkanyildiz
- License: mit
- Created: 2016-03-01T08:14:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T04:21:21.000Z (over 3 years ago)
- Last Synced: 2025-03-17T05:11:32.123Z (over 1 year ago)
- Topics: debugging, idevice, ios, log, logger, objective-c, viewer
- Language: Objective-C
- Homepage:
- Size: 20.5 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EYLogTextView
A simple UITextView subclass to see your app's logs on your iDevice in realtime.
# Features
- One line to integrate. Singleton for easier access.
- Shake device to hide and show.
- Compatible with standard `NSLog`, `print` and `Logger`, no special logging method needed.
- Saves all logs to local files to be shared later.
- Customizable size, position, opacity, font and colors.
- Default style is optimized for best visibility based on macOS Terminal.app `Red Sands` theme.
- Always on top, except for system windows like keyboards, alerts, etc.
- Uses `NSPipe` on `stderr` and `stdout` (no overhead).
- Works even while not connected to Xcode.
- Compatible with both `Objective-C` and `Swift` projects.
- Drag&Drop to any point on the screen by long press.
# Integration
## Objective-C Projects
In your project's `AppDelegate`, import `EYLogTextView.h` and add following line at the beginning of `application:didFinishLaunchingWithOptions:` method:
```
[EYLogTextView add];
```
(For potentially capturing earlier logs you can start it `main.m` as well.)
## Swift Projects
In your project's `Bridging Header`, import `EYLogTextView.h` and add following line at the beginning of `application:didFinishLaunchingWithOptions:` function:
```
EYLogTextView.add()
```
# Usage
- By default `EYLogTextView` will be hidden. You can shake your device to make it visible.
- You can also use `show`/`hide` or `toggle` methods to change visibility.
- As it is a `UITextView` subclass singleton, you can customizable size, position, opacity, font and colors as you wish by accessing the shared instance using `sharedInstance` method.
- You can long press to drag&drop it anywhere you want.
- You can tap to display menu with following options:
- Share current log file
- See all log files
- Share current console text
- Hide
- Clear current console text
- You can share all previously saved logs files and current log file.
- You can delete all previously saved logs files.
# ScreenShots (will be updated soon)



