Skip to content

πŸ” Add temporary debug logs instantly, remove them cleanly. Insert console.log with [TLOG] prefix, then bulk-delete before commit.

License

Notifications You must be signed in to change notification settings

KubrickCode/tlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TLOG - Transient Log Extension

Quick console.log with [TLOG] prefix for easy identification and removal

VS Code Extension TypeScript MIT License


A powerful VS Code extension that helps you manage temporary logging statements efficiently. Perfect for debugging sessions where you need to quickly add logs and clean them up later without leaving traces in your codebase.

Features

Quick TLOG Insertion

  • Instant logging: Press Ctrl+Shift+T (Mac: Cmd+Shift+T) to insert a console.log('[TLOG] message');
  • Smart snippets: Tab through the message placeholder for quick editing
  • [TLOG] prefix: Easy identification among other console logs

Powerful Cleanup

  • Bulk removal: Press Ctrl+Shift+R (Mac: Cmd+Shift+R) to remove all TLOGs
  • Scope selection: Choose between current file or entire workspace
  • Safety confirmation: Prevents accidental deletions with confirmation dialogs

Tree View Explorer

  • Visual overview: See all TLOGs organized by directory structure
  • Hierarchical display: Navigate through folders and files intuitively
  • TLOG count indicators: Each folder and file shows the number of TLOGs
  • One-click navigation: Jump directly to any TLOG location

Granular Control

  • Individual removal: Remove single TLOGs directly from the tree view
  • File-level cleanup: Remove all TLOGs from a specific file
  • Directory cleanup: Remove all TLOGs from a folder and its subdirectories
  • Inline actions: Trash icons for quick removal actions

Getting Started

  1. Install the extension from VS Code Marketplace or Open VSX Registry
  2. Insert a TLOG: Press Ctrl+Shift+T and type your debug message
  3. View TLOGs: Open the "TLOG" panel in the activity bar (sidebar)
  4. Clean up: Use Ctrl+Shift+R or click trash icons in the tree view

Commands

Command Shortcut Description
Insert TLOG Ctrl+Shift+T Insert a new TLOG at cursor position
Remove All TLOGs Ctrl+Shift+R Remove TLOGs from file or workspace
Refresh TLOG Tree - Refresh the TLOG Explorer view

Tree View Actions

  • Folder icons: Click to expand/collapse directories
  • Trash icons: Remove all TLOGs from files or directories
  • Close icons: Remove individual TLOG statements
  • File click: Navigate to TLOG location in the editor

Use Cases

Perfect for:

  • Debugging sessions: Quick temporary logs that you can easily clean up
  • Development workflow: Add debug statements without cluttering your code permanently
  • Code reviews: Ensure no temporary logs make it into production
  • Code hygiene: Keep your codebase clean and professional

Screenshots

Tree View Explorer

The hierarchical tree view shows all your TLOGs organized by directory structure with inline removal actions.

Quick Insertion

Insert TLOGs instantly with keyboard shortcuts and smart snippets.

Bulk Removal

Choose scope and remove all TLOGs with confirmation dialogs.

Technical Details

  • Search powered by Ripgrep: Fast and efficient TLOG detection across large codebases
  • Pattern matching: Identifies console.log statements containing [TLOG]
  • Workspace integration: Works seamlessly with VS Code's file system APIs
  • Memory efficient: Lightweight extension with minimal performance impact

Contributing

This project started as a small personal project with a development environment highly tailored to the owner. Given the low probability of external contributors, the current setup is unlikely to change.

If you'd like to contribute, please contact kubrickcode@gmail.com and we'll adapt the environment to accommodate contributions.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have feature requests:


Made with ❀️ by KubrickCode

Keep your logs organized, keep your code clean!