AEConsole alternatives and similar libraries
Based on the "Logging" category.
Alternatively, view AEConsole alternatives based on common mentions on social networks and blogs.
-
XCGLogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number. -
Dotzu
DISCONTINUED. Debbuger tool for iOS developer. Display logs, network request, device informations, crash logs while using the app. -
TinyConsole
๐ฑ๐ฌ๐ฆ TinyConsole is a micro-console that can help you log and display information inside an iOS application, where having a connection to a development computer is not possible. -
CleanroomLogger
CleanroomLogger provides an extensible Swift-based logging API that is simple, lightweight and performant -
Atlantis
A powerful input-agnostic swift logging framework made to speed up development with maximum readability. -
Puree
DISCONTINUED. [Obsoleted] A log collector for iOS (new version! -> https://github.com/cookpad/Puree-Swift) -
CleanroomASL
DISCONTINUED. A Swift-based API for reading from & writing to the Apple System Log (more commonly known somewhat inaccurately as "the console") -
TraceLog
TraceLog is a highly configurable, flexible, portable, and simple to use debug logging system for Swift and Objective-C applications running on Linux, macOS, iOS, watchOS, and tvOS. -
CacheAdvance
A performant cache for logging systems. CacheAdvance persists log events 30x faster than SQLite.
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of AEConsole or a related project?
README
AEConsole
Customizable Console UI overlay with debug log on top of your iOS App
AEConsole is built on top of AELog, so you should probably see that first.
I wanted to see what's happening 'under the hood' while testing some app AFK (ex. outside). Then I made it possible. Hope you'll like it too, happy coding!
Index
Features
- All the things from AELog plus:
- Console UI overlay on top of your App
- Debug log on device in real time
- Automatic row height for all log lines
- Forward touches to your App
- Shake to toggle Console UI
- Filter log to find exactly what you need
- Export log to file if you need it for later
- Share log file easily via system sharing sheet
- Customize look as you like it
Usage
Calling Console.shared.configure(in: window)
will add Console.View
as a subview to your App's window and make it hidden by default.
Whenever you need Console UI, you just make a shake gesture and it's there! When you no longer need it, shake again and it's gone.
The rest is up to AELog's logging functionality. Whatever is logged with it, will show up in Console.View
.
// MARK: - Console configuration
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool
{
/// - Note: Access Console settings
let settings = Console.shared.settings
/// - Note: Customize Console settings like this, these are defaults:
settings.isShakeGestureEnabled = true
settings.backColor = UIColor.black
settings.textColor = UIColor.white
settings.fontSize = 12.0
settings.rowSpacing = 4.0
settings.opacity = 0.7
/// - Note: Configure Console in app window (it's recommended to skip this for public release)
Console.shared.configure(in: window)
/// - Note: Log something with AELog
aelog()
return true
}
// MARK: - Additional Console API
/// - Note: Check if Console is hidden
Console.shared.isHidden
/// - Note: Toggle Console visibility
Console.shared.toggle()
/// - Note: Add any log line manually
Console.shared.addLogLine(line: "Hello!")
/// - Note: Export log file manually
Console.shared.exportLogFile { (fileURL) in
do {
let url = try fileURL()
/// - Note: do something with a log file at given file URL...
} catch {
print(error)
}
}
Quick Help
This should explain all the features of Console UI:
Feature | Description |
---|---|
Export Log | will make AELog_{timestamp}.txt file in Application Documents directory and present sharing sheet. |
Filter Log | filter is not case sensitive. |
Toggle Toolbar | works for both filter and menu toolbars simultaneously. |
Toggle Forward Touches | when active you can interact with your App, otherwise you can interact with the log. |
Toggle Auto Follow | when active it will automatically scroll to the new log lines, otherwise it will stay put. |
Clear Log | you can't undo this. |
Pan Gesture over Menu Toolbar | left is more transparent, right is more opaque. |
Installation
-
.package(url: "https://github.com/tadija/AEConsole.git", from: "0.7.2")
-
github "tadija/AEConsole"
-
pod 'AEConsole'
License
AEConsole is released under the MIT license. See [LICENSE](LICENSE) for details.
*Note that all licence references and agreements mentioned in the AEConsole README section above
are relevant to that project's source code only.