Skip to content
CAI
Software that uses CAICheck a score

orhanobut/logger

65.1

Adequate · 13 November 2026

446

lines of production code

Kotlin

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Android logging library that provides structured logging capabilities for collections, JSON, and XML. It utilizes a modular architecture with adapters to route logs to multiple destinations, such as Logcat and disk-based CSV files. The library is implemented in Kotlin and supports direct adapter registration without initialization.

Features

Add Kotlin-based sample app for logging library

A new sample module has been added to demonstrate the logging library's capabilities. The sample is written in Kotlin and includes a MainActivity that configures both Android console logging and disk-based CSV logging. It showcases features such as custom format strategies, thread-safe logging to a file, and logging various data types including JSON, lists, and maps. The sample app's layout displays a simple 'Hello World!' text view.

sample · high confidence

Removals

Removal of the LoggerSample application code and resources

The sample application code and its associated resources have been removed from the app/src directory. This includes the deletion of the main activity (MainActivity), helper classes (Dummy, Foo), the application test class, and all related Android resource files (layouts, menus, strings, dimensions, and styles). This change eliminates the demo app component, leaving only the core library code.

app/src · high confidence

Behavioural changes

Library modernized to Kotlin with new API and updated documentation

The Android logging library has been migrated from Java to Kotlin, introducing a new initialization-free API where users call Logger methods directly after adding an adapter (e.g., \Logger.addLogAdapter(AndroidLogAdapter())\). The public API now supports structured logging for collections, JSON, and XML, and allows setting a tag for a single message via \Logger.t()\. The README has been updated to reflect these changes, including new setup instructions using modern dependency management and examples for Timber integration.

(repo-wide) · high confidence

Logger library rewritten in Kotlin with a modular adapter and strategy architecture

The logger module has been completely rewritten in Kotlin, replacing the previous Java implementation with a new architecture based on \LogAdapter\, \FormatStrategy\, and \LogStrategy\ interfaces. This change introduces \AndroidLogAdapter\ for pretty-printed Logcat output and \DiskLogAdapter\ for CSV file logging, allowing users to route logs to multiple destinations. The \Logger\ object now uses a \Printer\ interface to manage these adapters, supporting features like one-time tags, JSON/XML formatting, and throwable handling, while removing the old \Logger.init()\ configuration pattern in favor of direct adapter registration.

logger · high confidence

Dependencies

Migrate to Gradle Version Catalog and modern build tooling

The project has been modernized by replacing legacy Groovy build scripts with Kotlin DSL (build.gradle.kts) and adopting the Gradle Version Catalog (libs.versions.toml) for centralized dependency management. This change upgrades the Android Gradle Plugin to version 9.4.1, Kotlin to 2.4.20, and sets the compile SDK to 37. It also removes the deprecated jcenter repository in favor of google() and mavenCentral(), replaces the custom maven\_push.gradle with the com.vanniktech.maven.publish plugin, and updates the library version to 2.3.0-SNAPSHOT.

(dependencies) · high confidence

Upgrade Gradle wrapper to version 9.8.0

The project's Gradle wrapper has been updated from version 2.2.1 to 9.8.0. This change ensures that builds use the newer Gradle distribution, which includes updated build tooling and dependency management capabilities.

gradle · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 62 → 65 (+3.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 100 → 98 (-2.0)
  • Maturity 52 → 52 (+0.0)
  • Readiness 45 → 53 (+8.0)
  • Security 100 → 100 (+0.0)

Resolved (4)

  • Dependency hygiene PARTLY measured — Maven/Gradle declarations read, no dependency graph resolved
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • Redundant low-level logging method. Both Logger and Printer expose an identical log method with the same signature. Since Printer is typically obtained via Logger.t() and represents a specific tag context, and Logger is the root entry point, having the same low-level dispatch method on both creates confusion about which entry point to use for programmatic logging.

New (56)

  • High interface indirection
  • Outdated (compile): com.google.code.gson:gson
  • Outdated (compile): com.google.errorprone:error_prone_annotations
  • Outdated (compile): com.google.guava:failureaccess
  • Outdated (compile): com.google.guava:guava
  • Outdated (compile): com.google.j2objc:j2objc-annotations
  • Outdated (compile): com.google.jimfs:jimfs
  • Outdated (compile): com.google.protobuf:protobuf-java
  • Outdated (compile): com.sun.istack:istack-commons-runtime
  • Outdated (compile): com.sun.xml.fastinfoset:FastInfoset
  • Outdated (compile): commons-codec:commons-codec
  • Outdated (compile): commons-io:commons-io
  • Outdated (compile): commons-logging:commons-logging
  • Outdated (compile): jakarta.activation:jakarta.activation-api
  • Outdated (compile): jakarta.xml.bind:jakarta.xml.bind-api
  • Outdated (compile): net.java.dev.jna:jna
  • Outdated (compile): net.java.dev.jna:jna-platform
  • Outdated (compile): org.apache.commons:commons-compress
  • Outdated (compile): org.apache.commons:commons-lang3
  • Outdated (compile): org.apache.groovy:groovy
  • …and 36 more

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

orhanobut/logger was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 0a0e922ee40ae0904bf29e56b81094920c09a485 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-f3449e6eb431.