A Swift logging SDK that simplifies logging implementation in iOS applications by providing a unified interface combining CocoaLumberjack and Swift-log.
- Unified logging interface
- Built on top of industry-standard logging frameworks
- iOS 12.0+ support
- Thread-safe logging
- Multiple log levels (Debug, Info, Warning, Error)
- Customizable log formatting
Add the following to your Package.swift
file:
dependencies: [
.package(url: "https://github.com/repfly/EasyLoggingSDK", from: "1.0.0")
]
import EasyLoggingSDK
// Initialize the logger
let logger = EasyLogger.shared
// Log messages with different levels
logger.debug("Debug message")
logger.info("Info message")
logger.warning("Warning message")
logger.error("Error message")
- iOS 12.0+
- Swift 5.8+
- Xcode 14.0+
- CocoaLumberjack (3.8.0+)
- Swift-log (1.4.0+)
For detailed documentation and examples, please visit the documentation directory.
We welcome contributions! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
See CHANGELOG.md for a list of changes and version history.