
Lightweight, extensible logging with automatic tag detection, smart test-mode colored output, trainer-based destinations (file, crash reporting, console), per-trainer volume and runtime control.
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.
TAG constants// build.gradle.kts
kotlin {
sourceSets {
commonMain.dependencies {
implementation("com.ivangarzab.bark:bark:<version>")
}
}
}// Train once at app startup
Bark.train(AndroidLogTrainer())
// Log anywhere — tag is detected automatically
Bark.d("App started") // [MainActivity]
Bark.e("Something failed", error) // [PaymentService]Android:
./gradlew :sample-android:installDebugiOS:
Open sample-ios/barK-sample/barK-sample.xcodeproj in Xcode and run.
Full documentation, guides, and API reference at ivangarzab.github.io/barK.
We welcome contributions! Please see our Contributing Guide for details.
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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Because every log deserves a good home 🐕🏠
Made with 🖤 for the Kotlin community
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.
TAG constants// build.gradle.kts
kotlin {
sourceSets {
commonMain.dependencies {
implementation("com.ivangarzab.bark:bark:<version>")
}
}
}// Train once at app startup
Bark.train(AndroidLogTrainer())
// Log anywhere — tag is detected automatically
Bark.d("App started") // [MainActivity]
Bark.e("Something failed", error) // [PaymentService]Android:
./gradlew :sample-android:installDebugiOS:
Open sample-ios/barK-sample/barK-sample.xcodeproj in Xcode and run.
Full documentation, guides, and API reference at ivangarzab.github.io/barK.
We welcome contributions! Please see our Contributing Guide for details.
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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Because every log deserves a good home 🐕🏠
Made with 🖤 for the Kotlin community