Coder Social home page Coder Social logo

kflogformatter's Introduction

KFLogFormatter

Version Platform

A log message formatter for CocoaLumberjack.

The KFLogFormatter class provides a log formatter for the CocoaLunmberjack
logging framework. It formats messages in the form:

LOG_LEVEL  DATE, TIME -[CLASSNAME METHOD][Line LINE_NUMBER] LOG_MESSAGE

Usage

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


The Formatter can be included into your project by importing the header:

#import <KFLogFormatter/KFLogFormatter.h>

defining ddLogLevel:

static const int ddLogLevel = LOG_LEVEL_VERBOSE;

and setting it as log formatter:

[DDLog addLogger:[DDTTYLogger sharedInstance]];
[[DDTTYLogger sharedInstance] setLogFormatter:[KFLogFormatter new]];

Requirements

CocoaLumberjack 1.6

Installation

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

pod "KFLogFormatter"

Author

Gunnar Herzog, [email protected]

License

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

kflogformatter's People

Contributors

nickolaysheika avatar ricobeck avatar trispo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kflogformatter's Issues

Crash on [dateFormatter stringFromDate:(logMessage->timestamp)] line

Hi,

I am getting crashes from some small fraction of users. The exception is:

-[KFLogFormatter formatLogMessage:]
SIGABRT ABORT at 0x3607232c

at
KFLogFormatter.m line 75
-[KFLogFormatter formatLogMessage:]

I have the newest KFLogFormatter version from github.

Thanks,

Jindrich

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.