---
name: "flog"
section: "1"
platform: "linux"
package: "flog"
version: "1.8+orig-2"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/flog"
---

# flog(1)

dump STDIN to file and reopen on SIGHUP

## NAME

flog - dump STDIN to file and reopen on SIGHUP

## SYNOPSIS

**flog** \[ **-t** \] \[ **-T** *format* \] \[ **-l** *number* \] \[ **-F** *fifo* \] \[ **-p** *pidfile* \] *logfile*

## DESCRIPTION

**flog** (file logger) reads input from STDIN and writes to a file. When a SIGHUP is received, the file will be reopened, allowing for log rotation.

## OPTIONS

- \-t

  prepend each line with "YYYYMMDD;HH:MM:SS: "

- \-T *format*

  prepend each line with specified [strftime(3)](/strftime/3.md) format

- \-l *number*

  log file length limit (force truncation)

- \-F *fifo*

  read from fifo instead of pipe

- \-p *pidfile*

  create pid file

## AUTHOR

Fredrik Sjoholm \<fredrik@sjoholm.com\>

## LICENSE

Licensed under the GNU General Public License
