core/logger

Implement a cross-platform logging API for Kotlin applications.

46|5|Updated Aug 31, 2025
One-click install
npx skills add https://github.com/cloner93/ExpenseShare --skill core-logger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core/logger
Source: https://github.com/cloner93/ExpenseShare/tree/main/core/logger
Command: npx skills add https://github.com/cloner93/ExpenseShare --skill core-logger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill unit provides a cross-platform logging abstraction, streamlining logging across various platforms with a consistent API.

Core Features & Use Cases

  • Cross-platform Support: Works seamlessly across Android, iOS, JVM, and web platforms.
  • Consistent API: Offers a unified AppLogger API for all platforms, reducing code duplication and maintenance efforts.
  • Platform-specific Implementations: Includes platform-specific implementations to handle different logging standards.
  • Use Case: Use the AppLogger API to log messages and errors, ensuring consistent logging across different environments.

Quick Start

Set up logging in your project by including the core/logger Skill unit and utilize the AppLogger object to log messages as needed.

Frequently Asked Questions about core/logger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement cross-platform logging in a Kotlin Multiplatform project?

Cross-platform logging in Kotlin Multiplatform can be implemented using a unified AppLogger API that abstracts platform-specific libraries like android.util.Log, NSLog, and java.util.logging.Logger. This provides a consistent logging interface across Android, iOS, JVM, and web platforms.

What is the best way to standardize logs across Android, iOS, JVM, and web platforms?

To standardize logs across Android, iOS, JVM, and web, you can use a cross-platform logging abstraction. It maps a single AppLogger API to native implementations like NSLog and println(), ensuring consistent message formats while reducing code duplication across environments.

Does this Kotlin logging abstraction support native iOS and Android logging libraries?

Yes, the cross-platform Kotlin logging abstraction supports native libraries by utilizing platform-specific implementations. It delegates logging to android.util.Log for Android and NSLog for iOS, ensuring native compatibility and performance across your application stack.

How do I set up a unified logging API for my multiplatform application stack?

To set up a unified logging API, include the logging abstraction in your project and call the AppLogger object to log messages. This bypasses the need to manually configure separate logging mechanisms for JVM, web, Android, and iOS environments.

Can I use a single logging API to handle errors across different Kotlin Multiplatform targets?

Yes, you can handle errors across different Kotlin Multiplatform targets using a single AppLogger API. It routes your error messages to the appropriate platform-specific logger, such as java.util.logging.Logger for JVM and println for web environments.