Skip to content

Commit

Permalink
Cocoapods Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
NSDavidObject committed Jun 2, 2016
1 parent ed89615 commit f566c5a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
23 changes: 23 additions & 0 deletions TwitterLoggingService.podspec
Original file line number Diff line number Diff line change
@@ -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' => '[email protected]' }
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

0 comments on commit f566c5a

Please sign in to comment.