FUNCTION::LOG(3stap) Logging Tapset FUNCTION::LOG(3stap)

# [NAME](#NAME)

function::log - Send a line to the common trace buffer

# [SYNOPSIS](#SYNOPSIS)

```


    log(msg:string)
```

# [ARGUMENTS](#ARGUMENTS)

*msg*

The formatted message string

# [DESCRIPTION](#DESCRIPTION)

This function logs data. log sends the message immediately to staprun and to the bulk transport (relayfs) if it is being used. If the last character given is not a newline, then one is added. This function is not as efficient as printf and should be used only for urgent messages.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::logging*(3stap)](/man/enterprise-packages/systemtap/tapset::logging.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::log(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
