NCCWL 0.2.4

NCCWL 0.2.4

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2016

Maintained by nickcheng.



 
Depends on:
CocoaLumberjack~> 2.3.0
NSLogger~> 1.5.1
SSZipArchive~> 1.2.0
PLCrashReporter~> 1.2
 

NCCWL 0.2.4

  • By
  • nickcheng

CWL == Crash w/ Logs. When your app crash, zip and send the crash info and your recent logs.

Overview

This is a glue library.

  • It uses PLCrashReporter to generate crash log.
  • It uses CocoaLumberjack and NSLogger to log everything to a file and NSLoggerViewer.
  • When a crash occurred, next time you start the app, it'll use ssziparcive to zip them all and call the block you set with the path of the zip file.

I didn't expose all the properties of log and crash libraries. You can modify them in file NCCWL.m to fit your need.

Dependence

Open source libraries:

Other frameworks:

  • SystemConfiguration.framework
  • CFNetwork.framework
  • libz.dylib

Installation

Place NCCWL folder in your project. Add the dependences. That's all.

Usage

Import NCCWL.h in your main delegate file. and place the code below in your application:didFinishLaunchingWithOptions.

[[NCCWL sharedInstance] setCrashHandler:^(NSString *cwlFilePath) {
  // Handle your zipped crash and logs.
  // How about upload the zipped file to a remote server?
  [Uploader uploadFile:cwlFilePath];
}];

If you have any problems when using this engine, please feel free to drop me an issue or contact me: