The prefix has various effects on subsequent logs. If more than one is specified, each is treated as a separate log. If the prefix appears as a stand-alone, no log is output, only the effect is given.
Group Prefix
The following prefixes that change the group at output.
{:start:}, {:>:} : Starting the group
{:startCollapsed:}, {:>>:} : Starting the group. And the group collapses
{:end:}, {:<:} : Ending the group
Category Prefix
The following prefixes change the category of subsequent logs.
{:error:} : The log is output in thestderr` category; in vscode, logs in this category are represented in red
Action Prefix
The following are prefixes that execute the action. These prefixes are executed only once at prefix-specific timing, regardless of the position and number of times specified. It is recommended that this is specified at the beginning of the log, as the log is split in the same way as another prefixes.
{:break:} : Break the script. The timing for stopping is after all logs have been output
{:clear:} : Clear the logs that have been output up to that point. Subsequent logs are output after being cleared
Examples
The following breaks the script after outputting test.
{:break:}test
Clear the log up to that point, then output test and break the script.
The prefix has various effects on subsequent logs. If more than one is specified, each is treated as a separate log. If the prefix appears as a stand-alone, no log is output, only the effect is given.
Group Prefix
The following prefixes that change the group at output.
{:start:}
,{:>:}
: Starting the group{:startCollapsed:}
,{:>>:}
: Starting the group. And the group collapses{:end:}
,{:<:}
: Ending the groupCategory Prefix
The following prefixes change the category of subsequent logs.
{:error:} : The log is output in the
stderr` category; in vscode, logs in this category are represented in redAction Prefix
The following are prefixes that execute the action. These prefixes are executed only once at prefix-specific timing, regardless of the position and number of times specified. It is recommended that this is specified at the beginning of the log, as the log is split in the same way as another prefixes.
{:break:}
: Break the script. The timing for stopping is after all logs have been output{:clear:}
: Clear the logs that have been output up to that point. Subsequent logs are output after being clearedExamples
The following breaks the script after outputting
test
.Clear the log up to that point, then output
test
and break the script.