CocoaLumberjack
Swinject
Our great sponsors
CocoaLumberjack | Swinject | |
---|---|---|
3 | 6 | |
13,121 | 6,183 | |
0.2% | 0.8% | |
8.6 | 4.2 | |
13 days ago | 7 days ago | |
Objective-C | Swift | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
CocoaLumberjack
-
Looking for a flexible and fast logging library with file rotation support
On iOS using Swift I would depend on the CocoaLumberjack library to support all of my logging needs. It's fast, flexible, and very importantly, supports configurable log file rotationDDFileLogger(py)maximumFileSize). It's awesome.
-
How to log only in debug mode? including network logs
Does anyone have experience with this? I've seen people mentioning to use Cocoalumberjack but not sure if its the right package (meaning if its not overkill). Apple have an open source logging library as well for this.
-
Awesome macOS Libraries List
CocoaLumberjack - A fast & simple, yet powerful & flexible logging framework. Language: Objective-C.
Swinject
-
Dependency Injection Simplified
DI is a concept which makes a class independent of its dependency management. It achieves that by decoupling the usage of an object from its creation. This helps you to follow SOLID’s dependency inversion and single responsibility principles. To achieve this in Swift one of the most appreciated library is Swinject. This library not only provides DI but also have many other features like:-
-
Awesome macOS Libraries List
Swinject - Dependency injection framework for Swift. Language: Swift.
-
SwiftUI Dependency injection
We use Swinject which is probably quite similar https://github.com/Swinject/Swinject
- Any DI libraries for swift?
- How do you guys see PHP and its framworks/CMS in 2025?
-
How to modularize a big iOS project
So, how do we fix this? There is a cleaner solution. By using a dependency injection framework, such as Swinject we can create a base module that we might call the DI module.
What are some alternatives?
SwiftyBeaver - Convenient & secure logging during development & release in Swift 4 & 5
Resolver - Swift Ultralight Dependency Injection / Service Locator framework
NSLogger - A modern, flexible logging tool
Cleanse - Lightweight Swift Dependency Injection Framework
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.
Needle - Compile-time safe Swift dependency injection framework
CleanroomLogger - CleanroomLogger provides an extensible Swift-based logging API that is simple, lightweight and performant
Typhoon - Powerful dependency injection for Objective-C ✨✨ (https://PILGRIM.PH is the pure Swift successor to Typhoon!!)✨✨
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.
Dip - Simple Swift Dependency container. Use protocols to resolve your dependencies and avoid singletons / sharedInstances!
JustLog - 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.
Kraken - Simple Dependency Injection container for Swift. Use protocols to resolve dependencies with easy-to-use syntax!