${expression} placeholders — and emits the rendered log to the HyperProbe panel in VS Code. Your application never pauses; the log is captured and forwarded asynchronously.
Log probes are the fastest way to add observability to a code path you did not think to instrument ahead of time. Instead of adding a console.log, pushing a commit, waiting for a deploy, and reproducing the issue, you place a log probe directly from your editor and see output within seconds of the next request hitting that line.
Creating a log probe
Open the HyperProbe panel in VS Code
Click the HyperProbe icon in the activity bar, then select Insert a Log from the probe type list.
Set the file path and line number
Enter the relative path to the file (for example,
src/payments/processor.ts) and the line number where the log should fire.Write the log message
Enter the message template in the Log Message field. Use
${expression} syntax to embed any variable or expression available at that line.Set the log level
Choose a severity level from the Log Level dropdown:
INFO, WARN, ERROR, or DEBUG. The level is included in the rendered output and can be used to filter results.Configuration reference
Relative path to the source file. For example,
src/payments/processor.ts.Line number where the log probe fires. Must be a positive integer.
The log message template. Use
${expression} placeholders to interpolate runtime values. For example: User ${user.name} placed order ${order.id}.Severity level of the emitted log. Accepts
INFO, WARN, ERROR, or DEBUG.Maximum number of log emissions before the probe auto-expires. Accepts 1–1000. Defaults to
100.A boolean expression that must evaluate to
true for the probe to emit a log. Leave blank to log on every execution.How long the probe remains active. Accepts
An Hour or A Day.Template syntax
The log message template supports${expression} interpolation. Each ${...} block is evaluated in the scope of the instrumented line at the moment the probe fires, and the result is coerced to a string.
- Property access
- Computed values
- Method calls
If an expression in the template throws an error or refers to an undefined variable, HyperProbe substitutes the error description in place of the value rather than dropping the entire log line.
Log levels
| Level | When to use |
|---|---|
INFO | General informational messages about normal execution flow. |
WARN | Conditions that are unexpected but not immediately harmful. |
ERROR | Failures or error states that indicate something went wrong. |
DEBUG | Detailed diagnostic information useful during active investigation. |
Viewing log output
Open the HyperProbe panel and click a log probe to open the inspector. Each captured emission appears as a rendered log entry showing the full evaluated message and the timestamp. Use the hit navigation controls to page through multiple emissions in order.Hit limit defaults
Log probes default to a hit limit of100, which is intentionally higher than the snapshot default of 1. Because log messages are lightweight — just a rendered string per emission — they are safe to capture at moderate frequency. Reduce the hit limit if you are instrumenting a very hot path and do not need that many samples.
