Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PR Check

on:
pull_request:
branches: [ main, master ]

jobs:
check:
name: ktlint and unit tests
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false

- name: Run Ktlint Check
run: ./gradlew ktlintCheck

- name: Run Unit Tests
run: ./gradlew test

- name: Verify Plugin Build
run: ./gradlew buildPlugin verifyPlugin
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Plugin

on:
push:
branches:
- main
release:
types: [created]
workflow_dispatch: # Allows manual trigger

jobs:
publish:
name: Build and Publish Plugin
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build Plugin
run: ./gradlew buildPlugin

- name: Verify Plugin
run: ./gradlew verifyPlugin

- name: Publish Plugin
env:
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: ./gradlew publishPlugin
81 changes: 81 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Changelog

All notable changes to the "Log Injector" plugin will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.0.1] - 2026-02-19

### Fixed
- Fixed incorrect removal of entire scope function blocks (`apply`, `let`, `run`) when removing a single log line inside them

### Improved
- Added Napier logging framework support for Kotlin Multiplatform projects
- Minor stability improvements

### Planned Features
- Support for additional logging frameworks (Log4j, SLF4J)
- Custom log templates
- Smart log placement (avoid duplicates)
- Log level configuration (DEBUG, INFO, WARN, ERROR)
- Bulk operations across multiple files
- Import optimization for logging frameworks

## [1.0.0] - 2025-02-17

### Added
- πŸŽ‰ Initial release of Log Injector
- ✨ Automatic log insertion for Java and Kotlin methods
- ✨ Automatic log removal functionality
- βš™οΈ Support for System.out.println logging
- βš™οΈ Support for Timber logging framework (Android)
- πŸ“Š Method execution tracking
- πŸ“Š Variable assignment tracking
- 🎨 Configurable log tags/prefixes
- 🎨 Tool window for easy configuration
- πŸ”§ Context menu integration (right-click actions)
- βœ… Full Kotlin K2 support
- βœ… IntelliJ IDEA 2024.3+ compatibility
- πŸ“ Comprehensive documentation and README
- πŸ§ͺ Unit tests for core functionality

### Technical Details
- Built with Kotlin 2.1.0
- Uses IntelliJ Platform SDK 2024.3
- Code style enforced with ktlint
- Gradle-based build system
- GitHub Actions CI/CD integration

### Compatibility
- IntelliJ IDEA 2024.3 (build 243) to 2025.3 (build 253.*)
- Supports Java and Kotlin files
- Requires JDK 21 or higher

---

## Release Notes Format for Marketplace

### Version 1.0.0 - First Release πŸŽ‰

**New Features:**
- One-click log insertion and removal for Java and Kotlin
- Support for System.out.println and Timber frameworks
- Configurable log tags and tracking options
- Tool window for easy configuration
- Context menu integration

**Technical:**
- Full Kotlin K2 compiler support
- Compatible with IntelliJ IDEA 2024.3+
- Built with modern IntelliJ Platform SDK

**Get Started:**
1. Right-click in any Java/Kotlin file
2. Choose "Insert Logs" to add debug statements
3. Use "Remove Logs" when done debugging
4. Configure options in the LoggingOptions tool window

Thank you for trying Log Injector! Report issues at: https://github.com/Kiolk/Log-Injector/issues
Loading