CocoaPods trunk is moving to be read-only. Read more on the blog, there are 10 months to go.

DDOuralabsLogger 0.1.0

DDOuralabsLogger 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2015

Maintained by Ryan Fung.



 
Depends on:
CocoaLumberjack>= 0
Ouralabs>= 0
 

Requirements

DDOuralabsLogger requires that Ouralabs is integrated.

Dependencies

Installation

In your app delegate, add the Ouralabs logger to CocoaLumberjack. This logger simply forwards logs to the Ouralabs.

[DDLog addLogger:[DDOuralabsLogger sharedInstance] withLevel:DDLogLevelAll];

To use the dynamic log levels, see the CocaoLumberjack documentation

Use the following code to determine what log level should be applied.

[Ouralabs setSettingsChangedBlock:^(BOOL liveTail, OULogLevel logLevel) {
    // Set the appropriate log level based on logLevel.
}];

The settingsChangedBlock gets called every time Ouralabs detects that there is a settings change. Settings can be changed either from the Ouralabs dashboard or the sdk itself.

Author

Ouralabs, [email protected]

License

DDOuralabsLogger is available under the MIT license. See the LICENSE file for more info.