Code Monkey home page Code Monkey logo

ddantennalogger's Introduction

DDAntennaLogger

CocoaLumberjack Custom Logger for Remote Logging with Antenna

The easiest way to leverage on logging power of CocoaLumberjack and logging remotely with the simplicity of Antenna.

Install

pod 'DDAntennaLogger', '1.0.0'

Usage

Somewhere, for example in your AppDelegate:

NSString *yourServerURLString = @"...";
NSString *yourServerLogMethod = @"..."; // Could be POST or LOG, or any other supported by your server
[[Antenna sharedLogger] addChannelWithURL:[NSURL URLWithString:yourServerURLString] method:yourServerLogMethod];
[[Antenna sharedLogger] startLoggingApplicationLifecycleNotifications];

DDAntennaLogger *logger = [[DDAntennaLogger alloc] initWithAntenna:[Antenna sharedLogger]];
[DDLog addLogger:logger];

DDLogInfo(@"DDAntennaLogger is cool!");
// => You'll see "DDAntennaLogger is cool!" on your server :)

It's that easy ๐Ÿ‘

You may also want to checkout this post to read about a real world used of DDAntennaLogger.

Contact

Giovanni Lodi @mokagio

Special Thanks

This project was after a quick conversation between @sandfoxuk and me, to solve the need of BIZZBY to get deep insight on the code execution while trying to solve a nasty bug.

License

MIT

ddantennalogger's People

Contributors

bamse16 avatar mokagio avatar

Watchers

 avatar  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.