# emaloney/CleanroomLogger

CleanroomLogger provides an extensible Swift-based logging API that is simple, lightweight and performant

Repository: https://github.com/emaloney/CleanroomLogger
Canonical: https://ross.abutalabs.com/products/cleanroomlogger
Language: Swift
License: MIT
License Family: permissive
Last push: 2023-03-14T16:10:38+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4156, "days_push": 1268, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1316, forks 150 (observed 2026-08-28T04:04:20.721353+00:00)

## What it is
CleanroomLogger is an extensible Swift-based logging library for Apple platforms that is simple, lightweight and performant. It integrates with Apple's Unified Logging System (OSLog) where available and falls back to standard output mechanisms otherwise.

## Use cases
- add structured logging to an iOS app
- log messages by severity level in Swift
- integrate logging with os_log on Apple platforms
- build a custom log formatter for my app
- replace CocoaLumberjack with a lightweight Swift logger
- keep logging off the main thread for smooth scrolling

## When to choose
- you need a lightweight, performant Swift logging API on iOS, macOS, tvOS or watchOS
- you want OSLog integration with automatic fallback on older systems
- you need severity-based filtering and customizable log formatting

## When to avoid
- you need actively maintained support for the latest Swift versions (it targets Swift 4.1 / Xcode 9.3)
- you need cross-platform logging beyond Apple ecosystems
- you require a logging framework with frequent updates and community support

## Facets
- artifact type: library
- maturity: maintenance
- function: logging
- domain: developer-tools, apple-ecosystem
- platform: -
- tags: swift, oslog, unified-logging, extensible, performant, ios-tools, ios, macos

## Member repositories
- emaloney/CleanroomLogger (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:20.721353+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:48:28.560226+00:00, confidence not recorded.
  - readme: https://github.com/emaloney/CleanroomLogger (fetched 2026-08-28T04:04:20.721353+00:00, sha 5d2457ca3eee)
- Data as of 2026-08-30T08:39:29.467469+00:00.
