logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

flog - dump STDIN to file and reopen on SIGHUP

Author

       Fredrik Sjoholm <fredrik@sjoholm.com>

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.

License

       Licensed under the GNU General Public License

                                                   March 2008                                            FLOG(1)

Name

       flog - dump STDIN to file and reopen on SIGHUP

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

Synopsis

flog [ -t ] [ -Tformat ] [ -lnumber ] [ -Ffifo ] [ -ppidfile ] logfile

See Also