-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
利辺羅エルネスト
committed
Nov 14, 2013
1 parent
8008c81
commit 42033f6
Showing
8 changed files
with
132 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,14 @@ Pod::Spec.new do |s| | |
s.homepage = "http://ptez.github.io/LumberjackConsole" | ||
|
||
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' } | ||
s.author = { "Ernesto Rivera" => "[email protected]" } | ||
s.screenshots = [ "https://raw.github.com/wiki/CyberAgent/iOS-NBUCore/images/Dashboard.png", | ||
"https://raw.github.com/wiki/CyberAgent/iOS-NBUCore/images/Dashboard_minimized.png", | ||
"https://raw.github.com/wiki/CyberAgent/iOS-NBUCore/images/Dashboard_filter.png" ] | ||
s.author = { "Ernesto Rivera" => "[email protected]" } | ||
s.screenshots = [ "http://ptez.github.io/LumberjackConsole/images/screenshot1.png", | ||
"http://ptez.github.io/LumberjackConsole/images/screenshot2.png" ] | ||
s.source = { :git => "https://github.com/PTEz/LumberjackConsole.git", :tag => "#{s.version}" } | ||
|
||
s.platform = :ios | ||
s.requires_arc = true | ||
s.preserve_paths = "README.*", "NOTICE", "*.xcconfig" | ||
s.preserve_paths = "README.md", "NOTICE" | ||
|
||
s.dependency 'NBUCore', '>= 2.0.0' | ||
s.dependency 'CocoaLumberjack', '>= 1.6.3' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
LumberjackConsole | ||
Copyright 2013 Ernesto Rivera. | ||
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,90 @@ | ||
|
||
LumberjackConsole | ||
================= | ||
|
||
An on-device CocoaLumberjack console. | ||
[![Platform: iOS](https://cocoapod-badges.herokuapp.com/p/LumberjackConsole/badge.svg)](http://cocoadocs.org/docsets/LumberjackConsole/) | ||
[![Version: 1.0.0](https://cocoapod-badges.herokuapp.com/v/LumberjackConsole/badge.png)](http://cocoadocs.org/docsets/LumberjackConsole/) | ||
[![Build Status](https://travis-ci.org/PTEz/LumberjackConsole.png?branch=master)](https://travis-ci.org/PTEz/LumberjackConsole) | ||
|
||
On-device CocoaLumberjack console with support for search, filters and more. | ||
|
||
![Screenshot 1](http://ptez.github.io/LumberjackConsole/images/screenshot1.png) ![Screenshot 2](http://ptez.github.io/LumberjackConsole/images/screenshot2.png) | ||
|
||
### Installation | ||
|
||
Simply add `pod 'LumberjackConsole'` to your [CocoaPods](http://cocoapods.org)' [Podfile](http://docs.cocoapods.org/podfile.html). | ||
|
||
### Usage | ||
|
||
#### a) Dashboard Logger | ||
|
||
Import the dashboard header: | ||
```obj-c | ||
#import <LumberjackConsole/PTEDashboard.h> | ||
``` | ||
|
||
Add its logger for testing builds: | ||
```obj-c | ||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | ||
{ | ||
#ifndef MY_PRODUCTION_MACRO | ||
// Add the console dashboard for testing builds | ||
[DDLog addLogger:[PTEDashboard sharedDashboard].logger]; // <- If not using NBULog | ||
// [NBULog addDashboardLogger]; // <- If using NBULog | ||
DDLogInfo(@"Added console dashboard"); | ||
#endif | ||
// ... | ||
return YES; | ||
} | ||
``` | ||
|
||
#### b) Embeded Console | ||
|
||
You can also embed the console into your own `UITableView`: | ||
|
||
```obj-c | ||
// Add a custom console | ||
_customConsoleLogger = [PTEConsoleLogger new]; | ||
_customConsoleLogger.tableView = self.customConsoleTableView; | ||
[DDLog addLogger:_customConsoleLogger]; | ||
|
||
DDLogInfo(@"Added a custom console logger"); | ||
``` | ||
### More | ||
When coupled with [NBULog](https://github.com/CyberAgent/iOS-NBULog) you can dynamically adjust log levels from within the dashboard! | ||
![Screenshot 3](http://ptez.github.io/LumberjackConsole/images/screenshot3.png) | ||
You log level settings are saved to `NSUserDefaults`. | ||
### Documentation | ||
http://cocoadocs.org/docsets/LumberjackConsole/ | ||
### ToDo | ||
* Clean up table view's data source. | ||
* Improve rotation support. | ||
* Clear log and message markers. | ||
* Long tap to copy text. | ||
* Read crash reports. | ||
### License | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters