Thank you for visiting our page! Here, you will find all the necessary information about XCDLumberjackNSLogger, its features, and how to effectively use it. XCDLumberjackNSLogger is a powerful logging framework that is designed to seamlessly integrate with Apple’s CocoaLumberjack and provide additional functionality for logging to NSLogger.

What is XCDLumberjackNSLogger?

XCDLumberjackNSLogger is a library that extends the functionality of CocoaLumberjack, a popular logging framework for macOS and iOS, by adding support for logging to NSLogger.


  • Integration between CocoaLumberjack and NSLogger
  • Ability to log messages directly to NSLogger from CocoaLumberjack
  • Seamless setup and configuration


Before you begin, please ensure that you have CocoaPods installed on your system.

  1. Open your terminal and navigate to your project directory.
  2. Create a file named Podfile if one does not already exist.
  3. Add the following line to your Podfile:
// Podfile
platform :ios, '10.0'
target 'YourAppTarget' do
  pod 'XCDLumberjackNSLogger'
  1. Save the Podfile and run pod install in the terminal.
  2. Wait for CocoaPods to install the XCDLumberjackNSLogger library to your project.
  3. Open your project in Xcode using the newly generated .xcworkspace file.


To start using XCDLumberjackNSLogger, follow these simple steps:

  1. Import the necessary modules in your Swift file:
// Swift
import CocoaLumberjack
import XCDLumberjackNSLogger
// Objective-C
@import CocoaLumberjack;
@import XCDLumberjackNSLogger;
  1. Configure CocoaLumberjack to use NSLogger as an additional logger:
// Swift
let logger = DDNSLoggerLogger.sharedInstance() // Create the NSLogger logger
DDLog.add(logger) // Add the logger to CocoaLumberjack
// Objective-C
DDNSLoggerLogger *logger = [DDNSLoggerLogger sharedInstance]; // Create the NSLogger logger
[DDLog addLogger:logger]; // Add the logger to CocoaLumberjack
  1. Now you can start logging using CocoaLumberjack as you normally would:
// Swift
DDLogDebug("This is a debug message")
DDLogError("This is an error message")
// Objective-C
DDLogDebug(@"This is a debug message");
DDLogError(@"This is an error message");


We welcome contributions! If you would like to contribute to XCDLumberjackNSLogger, please follow these steps:

  1. Fork the XCDLumberjackNSLogger repository on GitHub.
  2. Create a new branch with a descriptive name for your feature/bug fix.
  3. Make your changes and ensure that the code is properly tested.
  4. Submit a pull request to the main repository.

We appreciate your effort in making XCDLumberjackNSLogger better!


XCDLumberjackNSLogger provides a seamless integration between CocoaLumberjack and NSLogger, allowing you to enhance your logging capabilities. By following the installation and usage instructions above, you’ll be able to start using XCDLumberjackNSLogger in your projects and take advantage of its features. Don’t hesitate to contribute to the project and make it even better!