Overview

Motivation

Statistics

Features

Insert a log message

Comment inserted log messages

Uncomment log messages

Delete log messages

Correct log messages

Settings

Custom Prefix

Custom Suffix

Log Function Type

Log Function Name

Custom delimiter

Custom quote

Use semicolon

Enclosing class

Enclosing function

Include file name and line number

Include file name

Include line num

Wrap log message

Line before log message

Line after log message

Join the Turbo Tribe

30% Off

Subscribe to our newsletter to receive the latest updates, contribute to Turbo's future through surveys, and get an automatic 30% discount on Turbo Pro!

Get Latest Updates

Shape Turbo's Future

30% Off Turbo Pro

Get 30% off • Shape the future • Zero spam

Custom Suffix

Want your logs to have a distinct ending note? The logMessageSuffix setting is your solution. This attribute lets you add a bespoke touch to your log messages. It appends a custom suffix to each message generated by the Turbo Console Log extension, offering an extra layer of customization.


Usage

  1. Changing the Suffix:

    Personalizing the suffix is a breeze. Head to your VS Code settings via File → Preferences → Settings (or Code → Preferences → Settings on macOS). Then, in the search bar, key in "Turbo Console Log". Find the logMessageSuffix setting and type in your preferred suffix. Navigate to the settings in VS Code: File → Preferences → Settings (or Code → Preferences → Settings on Mac). Search for "Turbo Console Log" and find the logMessageSuffix setting. Enter your desired prefix string into the input field.


  2. Experience in Code:

    After you've tailored your suffix, it comes into play each time you generate a log message with Turbo Console Log. For instance, if "EndLog" is your chosen suffix, your log statement will appear as follows:

console.log('🚀 ~ SelectedVariable EndLog', SelectedVariable);

Using logMessageSuffix breathes personality into your logs. It's especially beneficial when you're navigating through large-scale projects or collaborating on a shared codebase. With a unique suffix, your debug messages stand out from the crowd. Should you leave this setting untouched, the suffix defaults to a colon (:).