MKLog 0.1.2

MKLog 0.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2016

Maintained by Michael Kuck.



MKLog 0.1.2

  • By
  • Michael Kuck

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.