This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
express-antenna-cocoalumberjack with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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:
DDAntennaLogger to your
pod 'AFNetworking' pod 'CocoaLumberjack' pod 'DDAntennaLogger', :git => 'https://github.com/mokagio/DDAntennaLogger'
Then in your
[[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!");