LoggerKit

1.1.1

A logger for Xcode
VishwaiOSDev/LoggerKit

What's New

1.1.1

2023-02-19T16:43:10Z

Full Changelog: 1.1.0...1.1.1

LoggerKit

LoggerKit

LoggerKit is a simple, lightweight logging framework for Swift that provides an easy-to-use API for logging messages in Swift projects. It is designed to be fast, efficient, and easy to set up, allowing developers to get up and running quickly. The framework is highly customizable, with several options for controlling the verbosity and formatting of log messages. Whether you're developing a small utility app or a complex enterprise-level system, LoggerKit is a great choice for adding robust logging capabilities to your Swift projects.

Motivation

LoggerKit is designed to be a simple and universal logging library with support for multiple Xcode projects. LoggerKit will have different types of log level.

Features

  • Easy to use
  • Highly customizable
  • Provides clean information

Available Log Levels

  • Verbose
  • Info
  • Debug
  • Warning
  • Error
  • Initialize (init)
  • Teardown (deinit)

๐Ÿ“ฆ Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

  • Add this Swift package in Xcode using its Github repository url. (File > Swift Packages > Add Package Dependency...)
  • Add this URL https://github.com/VishwaiOSDev/LoggerKit.git and select Add Package
  • After adding it select LoggerKit.

๐Ÿš€ How to use

LoggerKit makes your life easier

Firstly, import the LoggerKit

import LoggerKit

For logging,

LoggerKit.verbose("Example of verbose log.")
LoggerKit.info("Something went wrong")
LoggerKit.debug("Debug mode enabled")
LoggerKit.warning("Warning, duplication warning.")
LoggerKit.error("Error, data didn't fetch properly.")

LoggerKit will provide clean information for you. Output for above code as follows:

๐Ÿ’œ๐Ÿ’œ LoggerKitTests.swift: 49 - Something went wrong! Dependency Error.
๐Ÿ’š๐Ÿ’š LoggerKitTests.swift: 46 - Something went wrong! Dependency Error.
๐Ÿ’›๐Ÿ’› LoggerKitTests.swift: 19 - Debug mode enabled
๐Ÿงก๐Ÿงก LoggerKitTests.swift: 23 - Warning, duplication warning.
โค๏ธโค๏ธ LoggerKitTests.swift: 45 - Something went wrong! Dependency Error.

License

LoggerKit is released under the MIT license.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 10:49:20 GMT-0900 (Hawaii-Aleutian Daylight Time)