Latest1.0.2
Homepagehttps://github.com/micromanc3r/microLogger
LicenseMIT
Platformsios 8.0
Authors

Lightweight swift logger

Installation

Use cocoapods to install this easy-to-use logger.

pod 'microLogger', '~> 1.0.0'

Usage

Import the module:

import MicroLogger

Setup loglevel:

    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        MLogger.logLevel = .debug

        return true
    }

or better yet

        #if DEBUG
            MLogger.logLevel = .verbose
        #else
            MLogger.logLevel = .error // you don't have to worry about logging embarrassing verbose messages in production
        #endif

Log everything!

        MLogger.logWarning(sender: self,
                           andMessage: "This should not happen.")

Latest podspec

{
    "name": "microLogger",
    "module_name": "MicroLogger",
    "version": "1.0.2",
    "summary": "Lightweight logger for your swift app.",
    "description": "Ideal sollution for your swift app when you want to have a simple control over your logged messages.nnJust select appropriate loglevel for your debug or production build and you do not have to worry about printing something inappropriate in production.",
    "homepage": "https://github.com/micromanc3r/microLogger",
    "license": "MIT",
    "authors": {
        "Miroslav Sliacky": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/micromanc3r/microLogger.git",
        "tag": "1.0.2"
    },
    "source_files": "microLogger/**/*.{h,m,swift}",
    "exclude_files": "**/microLoggerTests/**/*.{swift}",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This