GithubHelp home page GithubHelp logo

keithwahn / xcdlumberjacknslogger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xced/xcdlumberjacknslogger

0.0 1.0 0.0 10 KB

CocoaLumberjack logger which sends logs to NSLogger

License: MIT License

Objective-C 90.04% Ruby 9.96%

xcdlumberjacknslogger's Introduction

About

Platform Pod Version License

XCDLumberjackNSLogger is a CocoaLumberjack logger which sends logs to NSLogger.

Requirements

  • Runs on iOS 5.0 and later
  • Runs on OS X 10.7 and later

Installation

XCDLumberjackNSLogger is available through CocoaPods.

pod "XCDLumberjackNSLogger", "~> 1.0.2"

Usage

XCDLumberjackNSLogger is fully documented.

Simply send logs to NSLogger

[DDLog addLogger:[XCDLumberjackNSLogger new]];

Configuring a bonjour service name

NSString *bonjourServiceName = [[[NSProcessInfo processInfo] environment] objectForKey:@"NSLOGGER_BONJOUR_SERVICE_NAME"];
[DDLog addLogger:[[XCDLumberjackNSLogger alloc] initWithBonjourServiceName:bonjourServiceName]];

Translating contexts to tags

XCDLumberjackNSLogger *logger = [XCDLumberjackNSLogger new];
logger.tags = @{ @80 : @"CocoaHTTPServer", @((NSInteger)0xced70676) : @"XCDYouTubeKit" };
[DDLog addLogger:logger];

Configuring a viewer host

XCDLumberjackNSLogger *logger = [XCDLumberjackNSLogger new];
LoggerSetViewerHost(logger.logger, CFSTR("10.0.1.7"), 50000);
[DDLog addLogger:logger];

Contact

Cédric Luthi

License

XCDLumberjackNSLogger is available under the MIT license. See the LICENSE file for more information.

xcdlumberjacknslogger's People

Contributors

0xced avatar

Watchers

James Cloos avatar

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.