KZLinkedConsole alternatives and similar libraries
Based on the "Logging" category.
Alternatively, view KZLinkedConsole 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 -
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) -
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. -
Atlantis
A powerful input-agnostic swift logging framework made to speed up development with maximum readability. -
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 - Purpose built for real-time analytics at any 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 KZLinkedConsole or a related project?
README
KZLinkedConsole
Ever wondered which part of your application logged the message you just saw in console?
Wonder no more, instead just click on it to jump to the culprit. Simple as that.
Installation
Download the source, build the Xcode project and restart Xcode. The plugin will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins. To uninstall, just remove the plugin from there (and restart Xcode).
Swift 3
Xcode8 / Swift3 is on swift3
branch.
Alcatraz
This plugin can be installed using Alcatraz. Search for KZLinkedConsole in Alcatraz.
Details
If a console logs a fileName.extension:123 that name turns into a clickable hyperlink that will open the specific file and highlight the line.
That way you can either use your own logging mechanism and just add this simple prefix, e.g.
func logMessage(message: String, filename: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__) {
print("\((filename as NSString).lastPathComponent):\(line) \(function):\r\(message)")
}
Integration with popular loggers
- XCGLogger is supported out of the box.
- SwiftyBeaver is supported out of the box.
- Log is supported out of the box.
- QorumLogs after enable KZLinkedConsoleSupportEnabled flag. ~~~swift QorumLogs.KZLinkedConsoleSupportEnabled = true ~~~
- CocoaLumberjack supported, with a log formatter printing fileName.extension:123, here's my log formatter for it:
Swift version (Objective-C version is part of KZBootstrap):
import Foundation
import CocoaLumberjack.DDDispatchQueueLogFormatter
class KZFormatter: DDDispatchQueueLogFormatter {
lazy var formatter: NSDateFormatter = {
let dateFormatter = NSDateFormatter()
dateFormatter.formatterBehavior = .Behavior10_4
dateFormatter.dateFormat = "HH:mm:ss.SSS"
return dateFormatter
}()
override func formatLogMessage(logMessage: DDLogMessage!) -> String {
let dateAndTime = formatter.stringFromDate(logMessage.timestamp)
var logLevel: String
let logFlag = logMessage.flag
if logFlag.contains(.Error) {
logLevel = "ERR"
} else if logFlag.contains(.Warning){
logLevel = "WRN"
} else if logFlag.contains(.Info) {
logLevel = "INF"
} else if logFlag.contains(.Debug) {
logLevel = "DBG"
} else if logFlag.contains(.Verbose) {
logLevel = "VRB"
} else {
logLevel = "???"
}
let formattedLog = "\(dateAndTime) |\(logLevel)| \((logMessage.file as NSString).lastPathComponent):\(logMessage.line): ( \(logMessage.function) ): \(logMessage.message)"
return formattedLog;
}
}
Opening files from outside Xcode
KZLinkedConsole also supports opening files from outside Xcode through distributed notifications. The xed command line tool is supposed to provide this feature but is unfortunately terribly broken.
In order to open the file Example.m and select the line 123, simply do the following:
[[NSDistributedNotificationCenter defaultCenter]
postNotificationName:@"pl.pixle.KZLinkedConsole.OpenFile"
object:@"Example.m"
userInfo:@{ @"Line": @123 }
deliverImmediately:YES];
You can also specify an absolute path if you know it. The userInfo dictionary with line number information is optional.
If the file was successfully opened, KZLinkedConsole will post back a pl.pixle.KZLinkedConsole.DidOpenFile
distributed notification.
More info
Read more about creation of this plugin on my blog