XLTestLog alternatives and similar libraries
Based on the "Logging" category.
Alternatively, view XLTestLog 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) -
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.
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 XLTestLog or a related project?
README
XLTestLog
Notes with Xcode 8 and XLTestLog
Since Xcode 8 killed XcodeColors, the current way using XCTestLog on Xcode 8 is just plain texts with emoji. You could still use XCTestLog to stylish XCTest logs without coloring.
XLTestLog v1.1+ will remove "color code" from logs if you don't privide a UseXcodeColors == YES
preprocess macro.
Introduction
XLTestLog is a lightweight library for stylish XCTest logs. It makes your testing logs more readable in Xcode Console.
- Reformat the log messages to make them more readable.
- Use indentations and Emoji bullets for different logs.
- Paint log messages and highlight important keywords using XcodeColors.
- Only test logs will be styled. You can distinguish colored test logs from other logs (e.g.
NSLog()
).
The following is an example for test results in Xcode Console using XLTestLog:
[](./Docs/Images/withXLTestLog.png)
And this is without using XLTestLog:
[](./Docs/Images/withoutXLTestLog.png)
The readability between them is quite different. The original test code for the console logs is simple (one passed test, one failed test, one measure task, and one message fromNSLog()
):
@implementation XLTestLogDevTests
- (void)testPassedCase {
XCTAssert(YES, @"Pass");
NSLog(@"This is a message from `NSLog()`.");
}
- (void)testFailureCase {
XCTAssert(NO, @"Fail");
}
- (void)testPerformanceExample {
// This is an example of a performance test case.
[self measureBlock:^{
int j = 0;
for (int i = 0; i < 1000000; i++) {
j += i;
}
}];
}
@end
How to use
No additional code is needed to use XLTestLog.
- Include XLTestLog in your test target (see Installation section).
- Install XcodeColors plugin.
- Just run your test, and see the delightful logs in the Xcode Console.
Release Notes
You should also install XcodeColors
Currently, you should use XLTestLog with XcodeColors. If you don't, it would show the color code in the logs.
In the next release, XLTestLog will read the environment variable XcodeColors
to decide whether using XcodeColors to paint log messages or not.
Installation
Before installing XLTestLog, please read the section Release Notes.
via CocoaPods
You can install XLTestLog simply via CocoaPods:
target :MyAppTests do
pod 'XLTestLog'
end
Manually
You can install XLTestLog manually via adding files in XLTestLog/
directory into your project.
About
Contribution
Any help would be most welcome. Even buy me a beer. :p
Author
- Xaree Lee (李岡諭, Kang-Yu Lee), an iOS developer from Taiwan.
License
XLTestLog is available under the MIT license. See the [LICENSE] file for more info.
*Note that all licence references and agreements mentioned in the XLTestLog README section above
are relevant to that project's source code only.