---
name: "portslogger"
section: "1"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/portslogger"
---

# portslogger(1)

logs ports builds selectively

## NAME

**portslogger** – logs ports builds selectively

## SYNOPSIS

**portslogger** \[**-s**\] *directory*

## DESCRIPTION

**portslogger** saves logs from ports build in separate files.

**portslogger** handles directory change messages from the ports tree infrastructure and switches to a corresponding log file situated in *directory* accordingly, e.g., it will log the build from screen in *directory/screen-4.0.3p1.log*. **portslogger** will filter progress-bar noise from [ftp(1)](/ftp/1.md), pkg\_add(1), and [pkg\_create(1)](/pkg_create/1.md).

By default, **portslogger** acts as a filter and still passes its input to stdout, unless run with **-s**.

It is most often used as

```
$ make package 2>&1 | portslogger logdir
```

or in conjunction with [tmux(1)](/tmux/1.md), such as

```
$ tmux pipe-pane 'portslogger -s logdir'
```

## SEE ALSO

[dpb(1)](/dpb/1.md), [tmux(1)](/tmux/1.md)
