EYLogTextView
EYLogTextView copied to clipboard
A simple viewer to see your app's logs on your iDevice in realtime.
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
andLogger
, 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
onstderr
andstdout
(no overhead). - Works even while not connected to Xcode.
- Compatible with both
Objective-C
andSwift
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
ortoggle
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 usingsharedInstance
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)