Coder Social home page Coder Social logo

nslogger-cocoalumberjack-connector's People

Contributors

0xced avatar drodriguez avatar lxcid avatar rayray avatar steipete avatar waltflanagan avatar whirlwind avatar zedenem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nslogger-cocoalumberjack-connector's Issues

setupWithBonjourServiceName doesn't restart Logger

In setupWithBonjourServiceName:

    BOOL running = self.running;
    [self stop];
    LoggerSetupBonjour(NULL, NULL, (__bridge CFStringRef)serviceName);
    if (running) {
        [self start];
    }

should be changed to

if (!running)

Current version doesn't work with latest version of CocoaLumberjack 2.x

I was able to get it working with a handful of edits to DDNSLoggerLogger.m, but I suspect the code would benefit from an update effort from someone that already knows the codebase.

Alternatively / in the meantime, perhaps the pod spec could be updated so that CocoaLumberjack version 1.9 is used when the NSLogger-CocoaLumberjack-connector pod is used.

CocoaLumberjack suggests:
pod 'CocoaLumberjack', '~> 1.9'
pod 'ConflictingLibrary'

Update podspec to remove dependencies

Unfortunately, it's hard to use this as a pod when I want to exclude NSLogger and the connector for Release builds.

#...
pod 'CocoaLumberjack', '~> 1.8.1'
#...

target :MyAppDebugOnly, :exclusive => true do
  pod 'NSLogger', '~> 1.2'
  pod 'NSLogger-CocoaLumberjack-connector', '~> 1.3'
end

Because CocoaLumberjack is listed as a dependency, it is linked twice in this instance, causing a duplicate symbols error. I think it's safe to assume that if you are using the connector, you'll know what base tools are needed.

I've opened this issue here since the Specs repo is more locked down now.

Need Tag 1.4 and update podspec

I found there is a pod spec for v1.4, but there is not a tag called v1.4.
Please tag it, and update the pod spec to cocoa pods.
Thanks.

NSLogger-CocoaLumberjack-connector 1.5 not in CocoaPods trunk

According to CocoaPods master repo, 1.5 hasn't been pushed to trunk yet.

-> NSLogger-CocoaLumberjack-connector (1.3)
   Bridges NSLogger and CocoaLumberjack.
   pod 'NSLogger-CocoaLumberjack-connector', '~> 1.3'
   - Homepage: https://github.com/steipete/NSLogger-CocoaLumberjack-connector
   - Source:   https://github.com/steipete/NSLogger-CocoaLumberjack-connector.git
   - Versions: 1.3, 1.2, 1.1 [master repo]

errors in logMessage

I've been faced to some error due to the recent version of CocoaLumberjack. Below my version of fixing bugs

- (void)logMessage:(DDLogMessage *)logMessage
{
    NSString *logMsg = logMessage.message;

    if (_logFormatter)
    {
        // formatting is supported but not encouraged!
        logMsg = [_logFormatter formatLogMessage:logMessage];
    }

    if (logMsg)
    {
        int nsloggerLogLevel;
        switch (logMessage.flag)
        {
                // NSLogger log levels start a 0, the bigger the number,
                // the more specific / detailed the trace is meant to be
            case LOG_FLAG_ERROR : nsloggerLogLevel = 0; break;
            case LOG_FLAG_WARN  : nsloggerLogLevel = 1; break;
            case LOG_FLAG_INFO  : nsloggerLogLevel = 2; break;
            default : nsloggerLogLevel = 3; break;
        }



        LogMessageF([logMessage.file UTF8String], logMessage.line, [logMessage.function UTF8String], logMessage.fileName, nsloggerLogLevel, @"%@", logMsg);

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.