
barK: A simple, light-weight and extensible logging library for Kotlin Multiplatform
[!IMPORTANT]
Upgrading from 0.2.x? Maven coordinates changed in v1.0.0 — see the migration guide.
Why barK?
- 🔄 Kotlin Multiplatform — Full Android + iOS support
- 🏷️ Automatic tag detection — No more manual
TAG constants
- 🎯 Trainer system — Flexible, extensible output destinations
- 🧪 Smart test detection — Different output for tests vs. production
Installation
kotlin {
sourceSets {
commonMain.dependencies {
implementation("com.ivangarzab.bark:bark:<version>")
}
}
}
Quick Start
Bark.train(AndroidLogTrainer())
Bark.d("App started")
Bark.e("Something failed", error)
Sample Apps
Android:
./gradlew :sample-android:installDebug
iOS:
Open sample-ios/barK-sample/barK-sample.xcodeproj in Xcode and run.
Documentation
Full documentation, guides, and API reference at ivangarzab.github.io/barK.
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
Copyright 2025 Ivan Garza
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:
Unless applicable law agreed to writing, software
distributed under the License distributed an BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied.
See the License the specific language governing permissions
limitations under the License.
Because every log deserves a good home 🐕🏠
Made with 🖤 for the Kotlin community