LogPurge - Smart Debug Log Master & Clean Assistant
Türkçe Açıklama | English Description
Türkçe
LogPurge, projelerinizde debug/hata ayıklama amacıyla yazdığınız log satırlarını (console.log, print, Console.WriteLine vb.) yerleştirmeyi, düzenlemeyi, yorum satırına dönüştürmeyi ve tek tıkla tamamen temizlemeyi sağlayan profesyonel bir VS Code eklentisidir.

🚀 Öne Çıkan Özellikler
- ⚡ Akıllı Log Ekleme (
Ctrl + Shift + L): İmlecinizi bir değişkenin üzerine getirin veya seçin, kısayola bastığınızda dosya adı, satır numarası ve değişkenin kendisini içeren dile uygun şık bir log satırı otomatik eklenir.
- 🔍 Etkileşimli Kenar Çubuğu (Dashboard): VS Code temanızla uyumlu, akışkan cam (Liquid Glassmorphism) efektlerine sahip modern bir panel üzerinden loglarınızı yönetin.
- 💬 Toplu Yorum Satırı Yapma: Çalışma alanındaki tüm geliştirici loglarını güvenli bir şekilde yorum satırına dönüştürün. Daha sonra isterseniz tek tıkla yorumdan çıkarabilirsiniz.
- 🗑️ Toplu Temizleme (Purge): Üretime (production) geçmeden önce projedeki tüm logları tek tıkla kalıcı olarak silebilirsiniz.
- 🛡️ Güvenli ve Geniş Kapsamlı Mod:
- Güvenli Mod (Safe Mode - Varsayılan): Sadece LogPurge ile eklenen (içinde
⚡ [LogPurge] işareti olan) logları hedefler. Projenizin kendi kurumsal log sistemine dokunmaz.
- Geniş Mod (Broad Mode): Dildeki tüm standart console/print ifadelerini tarar ve temizler.
- ↶ Geri Alma (Undo): Yanlışlıkla sildiğiniz veya yorum yaptığınız logları tek tıkla geri alabilirsiniz.
- 🔮 Canlı Filtreleme: Bulunan logları değişken adına veya dosya ismine göre anlık olarak arayabilirsiniz.

⌨️ Kısayol Tuşları
| İşlem |
Kısayol Tuşu |
Komut Adı |
| Akıllı Log Ekle |
Ctrl + Shift + L |
logpurge.insertLog |
| Projeyi Tara |
(Panel Butonu) |
logpurge.scan |
| Tümünü Yorum Yap |
(Panel Butonu) |
logpurge.commentAll |
| Tümünü Temizle |
(Panel Butonu) |
logpurge.purgeAll |
⚙️ Eklenti Ayarları
VS Code Ayarlar (Ctrl + ,) menüsünden LogPurge'ü özelleştirebilirsiniz:
logpurge.safeMode: Güvenli modu açıp kapatır (varsayılan true).
logpurge.excludePatterns: Tarama dışı bırakılacak klasörlerin listesi (Varsayılan olarak node_modules, .git, bin, obj, dist vb. hariç tutulur).
logpurge.customTemplates: Her dil için kendi log çıktınızı tanımlayabilirsiniz (Örn: {"javascript": "console.log('🔥', %VAR%);"}).
🌐 Desteklenen Diller
- JavaScript / TypeScript / React (
.js, .ts, .jsx, .tsx)
- Python (
.py)
- C# (
.cs)
- C++ / C (
.cpp, .c, .h, .hpp)
- Java (
.java)
- Go (
.go)
- Rust (
.rs)
- Ruby (
.rb)
- PHP (
.php)
- Swift (
.swift)
English
LogPurge is the ultimate VS Code extension designed to automate the painful process of inserting, formatting, commenting, and cleaning up debug logs across your projects. It keeps your codebase production-ready with one click.

🚀 Key Features
- ⚡ Smart Log Insertion (
Ctrl + Shift + L): Highlight a variable or place your cursor on it, and press the shortcut to immediately insert a language-specific log statement containing the filename, line number, and variable value.
- 🔍 Interactive Sidebar Dashboard: A modern, Liquid Glass themed dashboard that displays cleanliness statistics, circular progress trackers, and real-time logs.
- 💬 Mass Comment Out: Safely disable all development logs by commenting them out. LogPurge uses custom comment headers so you can easily uncomment them later.
- 🗑️ Mass Purge (Delete): Instantly delete all logs from the workspace before pushing code to production.
- 🛡️ Safe Mode vs. Broad Mode:
- Safe Mode (Default): Only scans and affects logs created by LogPurge (containing the
⚡ [LogPurge] signature) so it won't touch production loggers.
- Broad Mode: Scans and cleans up all standard logs (like
console.log, print, System.out.println, etc.) globally.
- ↶ Session History (Undo): Easily revert your cleanup actions with the Undo button in the sidebar or via commands.
- 🔮 Live Code Filter: Search and filter detected logs in real-time by variable name, file name, or line contents.

⌨️ Shortcut Keys
| Action |
Shortcut Key |
Command Name |
| Insert Smart Log |
Ctrl + Shift + L |
logpurge.insertLog |
| Scan Workspace |
(Sidebar Button) |
logpurge.scan |
| Comment Out All |
(Sidebar Button) |
logpurge.commentAll |
| Purge All Logs |
(Sidebar/Confirm) |
logpurge.purgeAll |
⚙️ Extension Settings
You can customize LogPurge from the standard VS Code Settings (Ctrl + ,):
logpurge.safeMode: Toggle Safe Mode (true by default) to restrict operations to LogPurge-marked logs.
logpurge.excludePatterns: Glob patterns of files and directories to ignore when scanning.
logpurge.customTemplates: Configure custom log outputs per language ID (e.g. {"javascript": "console.log('🔥', %VAR%);"}).
🌐 Supported Programming Languages
LogPurge automatically detects and styles log statements for:
- JavaScript / TypeScript / React (
.js, .ts, .jsx, .tsx)
- Python (
.py)
- C# (
.cs)
- C++ / C (
.cpp, .c, .h, .hpp)
- Java (
.java)
- Go (
.go)
- Rust (
.rs)
- Ruby (
.rb)
- PHP (
.php)
- Swift (
.swift)
📄 License
LogPurge is open-source software licensed under the MIT License.
| |