flog(1)

flog1

Dump stdin to file and reopen on sighup

Usage

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

Overview

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) format

-l number

log file length limit (force truncation)

-F fifo

read from fifo instead of pipe

-p pidfile

create pid file

Releases

11 releases since Debian 2.0 (Hamm); the text changed 2 times.

  1. 2.0–2.2
  2. 5.0–9
  3. 10–12

-F since Debian 10 (Buster); -T since Debian 5.0 (Lenny); -l since Debian 5.0 (Lenny); -p since Debian 5.0 (Lenny); -t since Debian 5.0 (Lenny).

Author

Fredrik Sjoholm <[email protected]>

License

Licensed under the GNU General Public License

From flog 1.8+orig-2 in Debian 12 (Bookworm). Parsed by carta from the page's man source.