Skip to content

bamse16/express-antenna-cocoalumberjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Express-Antenna-CocoaLumberjack

This package is an example endpoint for Antenna based CocoaLumberjack logger.

Usage

Install the package, then start it:

npm install express-antenna-cocoalumberjack
node node_modules/express-antenna-cocoalumberjack/app.js

To configure it, you can supply the following env variables:

export NODE_EXPRESS_ANTENNA_PORT=12345
export NODE_EXPRESS_ANTENNA_LOG_PATH=/tmp/

To verify that the server is running, point your browser to http://yourhost:3205/ping/.

On the objective-c project:

Add AFNetworking (2.0), CocoaLumberjack and DDAntennaLogger to your Podfile:

pod 'AFNetworking'
pod 'CocoaLumberjack'
pod 'DDAntennaLogger', :git => 'https://github.com/mokagio/DDAntennaLogger'

Then run:

pod install

Then in your appdelegate.m:

[[Antenna sharedLogger] addChannelWithURL:[NSURL URLWithString:@"http://localhost:3205/log/"] method:@"POST"];
[[Antenna sharedLogger] startLoggingApplicationLifecycleNotifications];

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

DDLogInfo(@"DDAntennaLogger is cool!");

Enjoy it!

About

Antenna Express.js endpoint for receiving CocoaLumberjack logs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published