Latest 0.1.2
Homepage https://github.com/mikumi/MKLog
License MIT
Platforms ios 7.0, watchos 2.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Michael Kuck/MKLog.svg?style=flat)](https://travis-ci.org/Michael Kuck/MKLog)
Version
License
Platform

A basic logger implementation for Objective-C

Features

  • 6 log levels (None, Error, Warning, Info, Debug, Verbose)
  • Log level prefix for warnings and erros
  • Class name and line number of caller
  • Optional timestamps

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Configuration

void MKSetLogLevel(MKLogLevelNone|MKLogLevelError|MKLogLevelWarning|
              MKLogLevelInfo|MKLogLevelDebug|MKLogLevelVerbose);
MKLogLevel MKGetCurrentLogLevel();

void MKSetUseTimestamps(true|false);
BOOL MKIsUsingTimestamps();

Logging

void MKLogError(@"Error message %@", param1, ...);
void MKLogWarning(@"Warning message %@", param1, ...);
void MKLogInfo(@"Info message %@", param1, ...);
void MKLogDebug(@"Debug message %@", param1, ...);
void MKLogVerbose(@"Verbose message %@", param1, ...);

Installation

MKLog is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MKLog"

Author

Michael Kuck, [email protected]

License

MKLog is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MKLog",
    "version": "0.1.2",
    "summary": "Lightweight log with multiple log levels",
    "description": "A lightweight logger implementation for Objective-C with multiple log levels.",
    "homepage": "https://github.com/mikumi/MKLog",
    "license": "MIT",
    "authors": {
        "Michael Kuck": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mikumi/MKLog.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "7.0",
        "watchos": "2.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "MKLog": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This