QorumLogs alternatives and similar libraries
Based on the "Logging" category.
Alternatively, view QorumLogs 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 QorumLogs or a related project?
README
QorumLogs
Swift Logging Utility in Xcode & Google Docs
Log Levels
class MyAwesomeViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
QL1("Debug")
QL2("Info")
QL3("Warning")
awesomeFunction()
}
func awesomeFunction() {
QL4("Error")
}
}
Works for both night mode and lightmode
Autocomplete Friendly: Type 2 Letters
-
Filter File Specific Logs:
Paste this where QorumLogs is initiliazed:
QorumLogs.onlyShowThisFile(NewClass)
Google Docs Support:
In production, send all your logs to Google Docs with only 1 line of extra code.
QorumLogs.enabled = false
QorumOnlineLogs.enabled = true
Spot System Logs:
System logs are white (or black) after all, yours are not :)
Installation
Prerequisites
- If you don't have Alcatraz or XcodeColors installed, lets install them. Open up your terminal and paste this:
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
- Restart Xcode after the installation
- Alcatraz requires Xcode Command Line Tools, which can be installed in Xcode > Preferences > Downloads. (You might not need this in the latest Xcode version)
- In Xcode click Window > Package Manager, type in 'XcodeColors' in the search bar. Click Install.
- Restart Xcode after the installation
Install via Cocoapods
You can use Cocoapods to install QorumLogs
by adding it to your Podfile
:
platform :ios, '8.0' # platform :tvos, '9.0' (for tvOS)
use_frameworks!
pod 'QorumLogs' #Stable release for Swift 3.0
pod 'QorumLogs', :git => 'https://github.com/goktugyil/QorumLogs.git' #Latest release for Swift 3.0
pod 'QorumLogs', :git => 'https://github.com/goktugyil/QorumLogs.git', :branch => 'Swift2.3' #For Swift 2.3
pod 'QorumLogs', '~> 0.8' #For Swift 2.2
(Cocoapods forces you to import the framework in every file. If anyone has a solution or workaround, inform me please)
Install via Carthage
You can install QorumLogs
via Carthage by adding the following line to your Cartfile
:
github "goktugyil/QorumLogs"
Install Manually
Download and drop 'QorumLogs.swift' in your project.
Check Installation Works Correctly
- In your AppDelegate or anywhere else enter this: (If Cocoapods or Carthage you must add
import QorumLogs
)
QorumLogs.enabled = true
QorumLogs.test()
- You will see something this:
Congratulations!
Log Storage in GoogleDocs (Optional, ~4 minutes)
[Learn to integrate GoogleDocs](./Log To GoogleDocs.md)
Detailed Features:
Log Levels
Sets the minimum log level that is seen in the debug area:
- Debug - Detailed logs only used while debugging
- Info - General information about app state
- Warning - Indicates possible error
- Error - An unexpected error occured, its recoverable
swift QorumLogs.minimumLogLevelShown = 2 QorumOnlineLogs.minimumLogLevelShown = 4 // Its a good idea to have OnlineLog level a bit higher QL1("mylog") // Doesn't show this level anywhere, because minimum level is 2 QL2("mylog") // Shows this only in debugger QL3("mylog") // Shows this only in debugger QL4("mylog") // Shows this in debugger and online logs
QL methods can print in both Debugger and Google Docs, depending on which is active.
Hide Other Classes
You need to write the name of the actual file, you can do this by a string and also directly the class name can be appropriate if it is the same as the file name. Add the following code where you setup QorumLogs:
QorumLogs.onlyShowThisFile(MyAwesomeViewController)
QorumLogs.onlyShowThisFile("MyAwesomeViewController")
You do not need the extension of the file.
Print Lines
QLPlusLine()
QL2("Text between line")
QLShortLine()
Add Custom Colors
Add custom colors for Mac, iOS, tvOS:
QorumLogs.colorsForLogLevels[0] = QLColor(r: 255, g: 255, b: 0)
QorumLogs.colorsForLogLevels[1] = QLColor(red: 255, green: 20, blue: 147)
QL1("Mylog")
OnlineLogs - User Information
QorumOnlineLogs.extraInformation["userId"] = "sfkoFvvbKgr"
QorumOnlineLogs.extraInformation["name"] = "Will Smith"
QL1("Will is awesome!")
QL5("Will rules!")
You only need to set the extraInformation one time.
KZLinkedConsole support:
KZLinkedConsole is a plugin for Xcode which add clickable link to place in code from log was printed. All you need to do is install it. For more information go to https://github.com/krzysztofzablocki/KZLinkedConsole
FAQ
How to delete rows inside google docs?
Unfortunately you can't just select the rows inside Google Docs and delete them. You need to select the rows where there are row numbers, then right click, then press delete click "Delete rows x-y" http://i.imgur.com/0XyAAbD.png
Requirements
- Xcode 6 or later (Tested on 6.4)
- iOS 7 or later (Tested on 7.1)
- tvOS 9 or later
Possible features
- Different colors for white and black Xcode themes
- Easily editable colors
- Device information to Google Docs
- Google Docs shows in exact order
- Automatically getting entry ids for Google Docs
- Pod support with QL methods written customly
Thanks for making this possible
License
QorumLogs is available under the MIT license. See the LICENSE file.
Keywords
Debugging, logging, remote logging, remote debugging, qorum app, swift log, library, framework, tool, google docs, google drive, google forms
*Note that all licence references and agreements mentioned in the QorumLogs README section above
are relevant to that project's source code only.