Watchdog alternatives and similar libraries
Based on the "Logging" category.
Alternatively, view Watchdog alternatives based on common mentions on social networks and blogs.
-
CocoaLumberjack
A fast & simple, yet powerful & flexible logging framework for macOS, iOS, tvOS and watchOS -
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. -
GodEye
Automaticly display Log,Crash,Network,ANR,Leak,CPU,RAM,FPS,NetFlow,Folder and etc with one line of code based on Swift. Just like God opened his eyes -
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 -
KZLinkedConsole
Clickable links in your Xcode console, so you never wonder which class logged the message. -
Diagnostics
Allow users to easily share Diagnostics with your support team to improve the flow of fixing bugs. -
JustLog
DISCONTINUED. JustLog brings logging on iOS to the next level. It supports console, file and remote Logstash logging via TCP socket with no effort. Support for logz.io available. -
LxDBAnything
Automate box any value! Print log without any format control symbol! Change debug habit thoroughly! -
XLFacility
DISCONTINUED. Elegant and extensive logging facility for OS X & iOS (includes database, Telnet and HTTP servers) -
Twitter Logging Service
Twitter Logging Service is a robust and performant logging framework for iOS clients -
Loggerithm
DISCONTINUED. A lightweight Swift logger, uses print in development and NSLog in production. Support colourful and formatted output. -
puree
DISCONTINUED. [Obsoleted] A log collector for iOS (new version! -> https://github.com/cookpad/Puree-Swift) -
Atlantis
A powerful input-agnostic swift logging framework made to speed up development with maximum readability. -
Logkit
An efficient logging library for OS X, iOS, watchOS, and tvOS โ written in Swift. Log to console, file, HTTP service, or your own endpoint. Simple to get started, but smartly customizable. -
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. -
ReflectedStringConvertible
A protocol that allows any class to be printed as if it were a struct or a JSON object. -
Spy
Spy is a flexible, lightweight, multiplatform logging utility written in pure Swift. It allows to log with different levels and on different channels. You can define what levels and channels actually are.
InfluxDB - Power Real-Time Data Analytics at Scale
* 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 Watchdog or a related project?
README
Watchdog
Class for logging excessive blocking on the main thread. It watches the main thread and checks if it doesnโt get blocked for more than defined threshold.
๐ฎ Main thread was blocked for 1.25s ๐ฎ
You can also inspect which part of your code is blocking the main thread.
Usage
Simply, just instantiate Watchdog with number of seconds that must pass to consider the main thread blocked. Additionally you can enable strictMode
that stops the execution whenever the threshold is reached. This way, you can inspect which part of your code is blocking the main thread.
let watchdog = Watchdog(threshold: 0.4, strictMode: true)
Don't forget to retain Watchdog somewhere or it will get released when it goes out of scope.
Requirements
- iOS 8.0+, tvOS 9.0+ or macOS 10.9+
- Swift 5.0
Installation
Carthage
Add the following to your Cartfile:
github "wojteklu/Watchdog"
Then run carthage update
.
Follow the current instructions in Carthage's README for up to date installation instructions.
CocoaPods
Add the following to your Podfile:
pod 'Watchdog'
You will also need to make sure you're opting into using frameworks:
use_frameworks!
Manually
Manually add the file into your Xcode project. Slightly simpler, but updates are also manual.
Author
Wojtek Lukaszuk @wojteklu
License
Watchdog is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the Watchdog README section above
are relevant to that project's source code only.