From f566c5aaf10fa21291b0d255527f590c2cc75d27 Mon Sep 17 00:00:00 2001 From: David Elsonbaty Date: Thu, 2 Jun 2016 14:21:56 -0700 Subject: [PATCH] Cocoapods Integration --- README.md | 18 ++++++++++++++++++ TwitterLoggingService.podspec | 23 +++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 TwitterLoggingService.podspec diff --git a/README.md b/README.md index ff3d30b..f8a5a57 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,24 @@ There is an opportunity to prevent message arguments from being evalutated in th The logging service marshals the message and its context to a background queue for processing by all available output streams. Streams can then filter or output the message. +## Installation +### CocoaPods + +[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it using the following command: +```bash +$ gem install cocoapods +``` + +To integrate TwitterLoggingService into your Xcode project using CocoaPods, specify it in your `Podfile`: +```ruby +platform :ios, '8.0' +use_frameworks! + +target "MyApp" do + pod 'TwitterLoggingService', '~> 2.2.0' +end +``` + ## Usage `TLSLog.h` is the principal header for using *TwitterLoggingService*. Just include `TLSLog.h` or `@import TwitterLoggingService`. diff --git a/TwitterLoggingService.podspec b/TwitterLoggingService.podspec new file mode 100644 index 0000000..c815cc8 --- /dev/null +++ b/TwitterLoggingService.podspec @@ -0,0 +1,23 @@ +Pod::Spec.new do |s| + s.name = 'TwitterLoggingService' + s.version = '2.2.0' + s.summary = 'Twitter Logging Service is a robust and performant logging framework for iOS clients' + s.description = <<-DESC +Twitter created a framework for logging in order to fulfill the following requirements: + - fast (no blocking the main thread) + - thread safe + - as easy as NSLog in most situations + - support pluggable "outputs streams" to which messages will be delivered + - "outputs streams" filter messages rather than global filtering for all "output streams" + - able to categorize log messages (log channels) + - able to designate importance to log messages (log levels) + - force opt-in for persisted logs (a security requirement, fulfilled by using the context feature of TLS) + DESC + s.homepage = 'https://github.com/twitter/ios-twitter-logging-service' + s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' } + s.author = { 'Twitter' => 'opensource@twitter.com' } + s.source = { :git => 'https://github.com/twitter/ios-twitter-logging-service.git', :tag => s.version.to_s } + s.ios.deployment_target = '8.0' + s.source_files = 'Classes/*' + s.public_header_files = 'Classes/*.h' +end