LibComponentLogging Core

screenshot of LibComponentLogging Core

LibComponentLogging Core

A small logging library for Objective-C applications (Mac OS X and iPhone OS/iOS) which provides conditional logging based on log levels and log components. Additionally, different logging strategies can be used, e.g. writing log messages to a file or sending them to the system log, while using t...

Overview:

LibComponentLogging is a logging library for Objective-C on Mac OS X and iOS. It provides log levels, log components, and pluggable logging back-ends. The library is available under the MIT license.

Features:

  • Log levels
  • Log components
  • Pluggable logging back-ends
  • Configurable log file format

Installation:

  1. Download the files of the library Core and a logging back-end from their repositories on GitHub.
  2. Extract the files and copy them to your application's source directory.
  3. Open Xcode and add all files of the library to your application's project.
  4. Create a lcl_config_logger.h file and set up the logger.
  5. Create a lcl_config_extensions.h file and optionally add #import statements for logging extensions.
  6. Create your application's lcl_config_components.h file.
  7. Add a #import statement for lcl.h to your application files.
  8. Define your log components in lcl_config_components.h.
  9. Add lcl_log(...) log statements to your application.

Summary:

LibComponentLogging is a logging library for Objective-C that provides log levels, log components, and pluggable logging back-ends. It can be easily integrated into an application by following the installation steps. The library is licensed under the MIT license, making it suitable for both commercial and open-source projects.