Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Logger HelperNew to Visual Studio Code? Get it now.
Logger Helper

Logger Helper

EslamFares

|
1 install
| (1) | Free
Quick logger shortcuts for development
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Logger Helper

Logger Helper is a VS Code extension designed to make logging faster and more customizable.

This extension lets you insert logging statements quickly with shortcuts.


✨ Features

  • Insert logging statements with simple keyboard shortcuts.
  • Fully customizable logger methods (e.g., logger.i, logger.e, log, print, etc.).
  • Works with any programming language — [just change the logger method].
  • Define your own shortcuts per log level (Info, Trace, Warn, Error, etc.).
  • Quick setup in VS Code settings.

📌 Example

Selected text:

var msg = "welcome";

Select (msg) and pressing Ctrl+Shift+P (Info):

logger.i("msg: $msg");

Selected text:

var length = msg.length;

Select (msg.length) and pressing Ctrl+Shift+P (Info):

logger.i("msg.length: ${msg.length}");

⚙️ Configuration

In your VS Code settings.json, you can configure the logger methods and shortcuts.

{
  "loggerHelper.loggerInfoMethod": "logger.i",
  "loggerHelper.loggerInfoShortcut": "ctrl+shift+p",

  "loggerHelper.loggerTraceMethod": "logger.t",
  "loggerHelper.loggerTraceShortcut": "ctrl+shift+o",

  "loggerHelper.loggerWarnMethod": "logger.w",
  "loggerHelper.loggerWarnShortcut": "ctrl+shift+[",

  "loggerHelper.loggerErrorMethod": "logger.e",
  "loggerHelper.loggerErrorShortcut": "ctrl+shift+]"
}

🔄 Example Configurations

  • Flutter/Dart
"loggerHelper.loggerInfoMethod": "logger.i",
"loggerHelper.loggerErrorMethod": "logger.e"
  • JavaScript/TypeScript
"loggerHelper.loggerInfoMethod": "console.log",
open extention setting 
change (logger.i) to (console.log)
  • Python
"loggerHelper.loggerInfoMethod": "print",
open extention setting 
change (logger.i) to (print)

⌨️ Shortcuts

Default shortcuts (customizable in settings):

  • Info → Ctrl+Shift+P
  • Trace → Ctrl+Shift+O
  • Warn → Ctrl+Shift+W
  • Error → Ctrl+Shift+E

🚀 Usage

  1. Highlight text (optional).
  2. Press a shortcut (e.g., Ctrl+Shift+P).
  3. Logger Helper will insert the corresponding log statement.

👉 If text is selected → it logs the selected text.
👉 If no text is selected → it inserts a blank log template.


🛠️ Installation

  1. Open VS Code.
  2. Go to Extensions (Ctrl+Shift+X).
  3. Search for Logger Helper.
  4. Install and configure via settings.json.

💡 Why use Logger Helper?

✅ Saves time typing repetitive logging statements.
✅ Keeps your logging consistent across projects.
✅ Works with any language — just change the logger method.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft