SYNOPSIS

flog [ -t ] [ -T format ] [ -l number ] [ -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

prepend each line with specified strftime(3) format

-l

log file length limit (force truncation)

-p

create pid file

AUTHOR

Fredrik Sjoholm <[email protected]>

LICENSE

Licensed under the GNU General Public License