Swiftpack.co - grikshka/Swifty-Logger as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by grikshka.
grikshka/Swifty-Logger 1.0.7
Logger for iOS applications, that helps you track the application flow.
⭐️ 0
🕓 28 weeks ago
iOS
.package(url: "https://github.com/grikshka/Swifty-Logger.git", from: "1.0.7")

Swifty-Logger

SwiftyLogger is a logging library for iOS applications, that helps you track the application flow.

SwiftyLogger encapsulates multiple logging services into a single global Logger instance which provides an easy-to-use interface (defined in LoggerProtocol) for logging events and errors within the application.

It could be used for both development and in-production purposes such as debugging, analyzing user activity, testing and many other.

Language

Swift

Supported Platforms

  • iOS

Supported Platforms Versions

iOS

iOS 11.0 +

Branches & Releases

  • main branch keeps the newest major - stable release.
  • stable branch keeps the newest minor - stable release.
  • beta branch keeps the newest minor - beta release.

Installation

Swift Package Manager

  • In Xcode, open your project and navigate to File → Swift Packages → Add Package Dependency.
  • Paste the package repository URL https://github.com/grikshka/Swifty-Logger and click Next.
  • For Rules, select Version - Up to Next Major - 1.0.0.
  • Select your target projects and click Finish.

Swift Package

.package(name: "SwiftyLogger", url: "https://github.com/grikshka/Swifty-Logger/", from: "1.0.0")

Additional Setup

Firebase Analytics Logger

  • Create and setup Firebase project
  • Add GoogleService-Info.plist file to your Xcode project
  • Add "-ObjC" flag to your project ( Select your project and target -> Build Settings -> Other Linker Flags -> "+")
  • Call FirebaseApp.configure() on application launch

Dependencies

Usage

import SwiftyLogger

let logger: LoggerProtocol = Logger.shared
logger.registerServices(.consoleLogger, .firebaseAnalyticsLogger)
logger.log(type: .info, name: "ExampleLog", description: "Example Log Description", parameters: ["SwiftyLoggerVersion": "1.0.0"])

GitHub

link
Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.0.7
28 weeks ago
  • Update documentation

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics