Latest 1.1.3
Homepage https://github.com/SysdataSpA/Blabber
License Apache 2.0
Platforms ios 8.0
Authors

Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 8 and above

Installation

Docker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Blabber"

If you want to manage your logs with CocoaLumberjack use subpod

pod "Blabber/CocoaLumberjack"

License

Blabber is available under the Apache license. See the LICENSE file for more info.

Introduction

Blabber is a library that provides a common wrapper to our each library (ex. Docker, Umarell, …) to log messages with different filter levels.
By default it writes all messages (depending about filter level set) with NSLog.
You can also use SDLoggerDelegate protocol, set as logger delegate and manage your messages implementing method logger:didReceiveLogWithLevel:syncMode:module:file:function:line:format:arguments:

Otherwise if you want to use CocoaLumberjack to log your messages you can use the subpod Blabber/CocoaLumberjack.

Define your log module

If you want to define a specific log module (ex. in your private pod), you can use SDLoggerModuleProtocol

- (NSString*) loggerModuleName
{
    return "your module name";
}

- (SDLogLevel) loggerModuleLogLevel
{
    return [[SDLogger sharedLogger] logLevelForModuleWithName:self.loggerModuleName];
}

- (void) setLoggerModuleLogLevel:(SDLogLevel)level
{
    [[SDLogger sharedLogger] setLogLevel:level forModuleWithName:self.loggerModuleName];
}

Latest podspec

{
    "name": "Blabber",
    "version": "1.1.3",
    "summary": "iOS modular logger based on CocoaLumberjack.",
    "homepage": "https://github.com/SysdataSpA/Blabber",
    "license": "Apache 2.0",
    "authors": {
        "Sysdata S.p.A.": "[email protected]"
    },
    "source": {
        "git": "https://github.com/SysdataSpA/Blabber.git",
        "tag": "1.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "default_subspecs": "Core",
    "pushed_with_swift_version": "3.0",
    "subspecs": [
        {
            "name": "Core",
            "source_files": "Blabber/Classes/Base/**/*",
            "xcconfig": {
                "GCC_PREPROCESSOR_DEFINITIONS": "BLABBER=1"
            }
        },
        {
            "name": "CocoaLumberjack",
            "source_files": "Blabber/Classes/CocoaLumberjack/*",
            "dependencies": {
                "Blabber/Core": [],
                "CocoaLumberjack": [
                    "~> 2.0"
                ]
            },
            "xcconfig": {
                "GCC_PREPROCESSOR_DEFINITIONS": "COCOALUMBERJACK=1"
            }
        }
    ]
}

Pin It on Pinterest

Share This