Latest 1.3
Homepage https://github.com/AppsComTr/APLogger
License MIT
Platforms ios 8.0
Authors

Yet another logger framework for Swift/Objective-C

Platform
CocoaPods
Carthage compatible
License

Installation

Manual

You can drag AppLogger.swift and LogLevel.swift files directly to your project and you are all set.

Cocoapods

pod 'APLogger'

Usage

Simply, you can use below code to start logging with style!

APLogger.log("Log Title", "Log Description", .warning)

There are 4 log levels to make it clear when you are reading logs.

.info
.warning
.error
.fatal

By default, APLogger will print only .error and .fatal logs. But you can specify the minimum log level by using:

APLogger.releaseMinimumLogLevel

If you set APLogger.isDebug = true, it will print all logs.

Customization

APLogger can be customized by logging format and log level descriptors.

Log level descriptors has default values of:

infoDescriptorString = "ℹ️"
warningDescriptorString = "⚠️"
errorDescriptorString = "⛔"
fatalDescriptorString = "🆘"

APLogger’s default logging format is:

"%@ %@ - %@"

The parameters are with the order: log level descriptor, title and description. You can give any other string format.

License

APLogger is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "APLogger",
    "version": "1.3",
    "summary": "Yet another logger framework for Swift/Objective-C",
    "description": "This is a light-weight logger helper framework for Swift/Objective-C. It also can be custumizable for your taste!",
    "homepage": "https://github.com/AppsComTr/APLogger",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Orhun Mert Simsek": "[email protected]"
    },
    "social_media_url": "http://twitter.com/orhunmertsimsek",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/AppsComTr/APLogger.git",
        "tag": "1.3"
    },
    "source_files": "APLogger/*.{h,m,swift}",
    "swift_version": "4.2",
    "documentation_url": "http://apps.com.tr/APLogger/docs/"
}

Pin It on Pinterest

Share This