Loggerithm alternatives and similar libraries
Based on the "Logging" category.
Alternatively, view Loggerithm alternatives based on common mentions on social networks and blogs.
9.9 6.5 L1 Loggerithm VS CocoaLumberjackA fast & simple, yet powerful & flexible logging framework for Mac and iOS
9.4 3.1 L4 Loggerithm VS SwiftyBeaverConvenient & secure logging during development & release in Swift 4 & 5
9.1 0.0 L3 Loggerithm VS XCGLoggerA 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.
7.5 0.0 L5 Loggerithm VS WillowWillow is a powerful, yet lightweight logging library written in Swift.
6.6 0.0 L3 Loggerithm VS AFNetworkActivityLoggerAFNetworking 3.0 Extension for Network Request Logging
6.3 3.6 Loggerithm VS DiagnosticsAllow users to easily share Diagnostics with your support team to improve the flow of fixing bugs.
5.7 4.8 L4 Loggerithm VS JustLogJustLog 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.
Twitter Logging Service is a robust and performant logging framework for iOS clients
4.5 3.7 L4 Loggerithm VS AardvarkAardvark is a library that makes it dead simple to create actionable bug reports.
3.6 0.0 Loggerithm VS puree[Obsoleted] A log collector for iOS (new version! -> https://github.com/cookpad/Puree-Swift)
3.5 0.0 L5 Loggerithm VS LogkitAn 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.
2.8 0.0 Loggerithm VS BugfenderBugfender SDK for iOS, a remote logger tailor-made for mobile
2.5 0.0 L3 Loggerithm VS CleanroomASLA Swift-based API for reading from & writing to the Apple System Log (more commonly known somewhat inaccurately as "the console")
1.0 0.0 Loggerithm VS SpySpy 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.
* 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 Loggerithm or a related project?
A lightweight Swift logger, uses
NSLog in Production with colourful output.
In Swift, we usually use
Thus we want to use
NSLog in production but still want the efficiency of
This project started more than half a year ago, named ZHSwiftLogger. At that time, no other Swift loggers provided this functionality. So I developped this logger for my personal usage.
Nowadays, we have more and more great Swift loggers. While, Loggerithm is lightweight, pretty straightforward and handy to use.
- [x] Use
- [x] Formatted output, just like
- [x] Log level Support.
- [x] Colorful output and color customization.
- [x] Comprehensive Unit Test Coverage.
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 7.0
CocoaPods is a dependency manager for Cocoa projects.
To integrate Loggerithm into your Xcode project using CocoaPods, specify it in your
source 'https://github.com/CocoaPods/Specs.git' use_frameworks! pod 'Loggerithm', '~> 1.5'
Then, run the following command:
$ pod install
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update $ brew install carthage
To integrate Loggerithm into your Xcode project using Carthage, specify it in your
github "honghaoz/Loggerithm" ~> 1.5
carthage update to build the framework and drag the built
Loggerithm.framework into your Xcode project.
Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the
swift compiler. It is in early development, but Loggerithm does support its use on supported platforms.
Once you have your Swift package set up, adding Loggerithm as a dependency is as easy as adding it to the
dependencies value of your
dependencies: [ .Package(url: "https://github.com/honghaoz/Loggerithm.git", majorVersion: 1) ]
Add Swift files in Source folder into your project
DEBUGflag to Swift Compiler:
- Open project setting
- Select your target
- Go to
- Under Swift Compiler - Custom Flags section, in Other Swift Flags line, add
Colorful Output Support
Need XcodeColors plugin installed.
Setup Environment Variable
Once XcodeColors is installed and loaded properly. To let logger automatically turn on, you need to add
"XcodeColors" = "YES" environment variable to your build scheme.
This can be done in following way:
- Under target selection, click Edit Scheme...
- Under Arguments tab, in Environment Variables, hit + to add a new environment variable with name "XcodeColors" and value "YES".
You can also manually force to turn on/off colorful output by modifying
If you are using CocoaPods to integrate Loggerithm. Import Loggerithm first:
var log = Loggerithm() // Usage example log.verbose("Verbose message...") log.debug("Debug message...") log.info("Info message...") log.warning("Warning message...") log.error("Error message...")
.Verbose for development and
.Warning for Production.
LogLevel from low to high is
Logging with level lower than
logLevel will be ignored.
Log string containts 5 fields, format is:
y-MM-dd HH:mm:ss.SSS [LogLevel] [FileName:LineNumber] functionName: message
All logging fields can be turned on/off:
var log = Loggerithm() log.showDateTime = false log.info("date time is turned off.") log.showLineNumber = false log.info("Line number is turned off.") log.showFileName = false log.info("File name is turned off.") log.showFunctionName = false log.info("Function name is turned off.") log.showLogLevel = false log.info("Log level is turned off.") log.emptyLine() log.info("Restoring to full format...")
var log = Loggerithm() log.verbose("I can use format: %d + %d = %d", args: 1, 1, 2)
See Installation/Colorful Output Support for more detail.
You can modify
useColorfulLog to turn on/off colorful output.
log.useColorfulLog = false log.info("Color is turned off.") log.useColorfulLog = true log.info("Color is turned on.")
Note, If you don't have XcodeColors plugin installed but leaving
useColorfulLog turned on, this will result in hidden color setting code to be visible:
[fg190,190,190;2015-08-14 16:55:34.075 [Verbose] [ViewController.swift:34] viewDidLoad(): Verbose message...[; [fg60,161,202;2015-08-14 16:55:34.076 [Debug] [ViewController.swift:35] viewDidLoad(): Debug message...[;
var log = Loggerithm() log.verboseColor = UIColor.grayColor() log.debugColor = UIColor.greenColor() log.infoColor = UIColor.yellowColor() log.warningColor = UIColor.orangeColor() log.errorColor = UIColor.redColor() log.verbose("Verbose message...") log.debug("Debug message...") log.info("Info message...") log.warning("Warning message...") log.error("Error message...")
The MIT License (MIT)
The MIT License (MIT) Copyright (c) 2014 Honghao Zhang (张宏昊)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*Note that all licence references and agreements mentioned in the Loggerithm README section above are relevant to that project's source code only.