FLOG(1)

πŸ“¦ version 1.8+orig, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– FLOG(1) β€” the file logger that's literally just vibing πŸ’–

okay bestie, welcome to the flog manual page, from the General Commands Manual, and no cap this little guy is iconic. she's called flog (short for file logger, iykyk) and she does one thing and she does it beautifully. πŸ¦‹


✨ NAME ✨

flog β€” dump STDIN to file and reopen on SIGHUP πŸŽ€


🌸 SYNOPSIS 🌸

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

πŸ’… DESCRIPTION πŸ’…

so here's the tea β˜• β€” flog reads input from STDIN and writes it to a file. that's it. that's the whole job. main character energy fr fr. πŸ‘‘

and the way that she handles log rotation?? obsessed. when a SIGHUP shows up, the file gets reopened, which is what lets you do log rotation without ever killing her. she just closes the door, opens it again, and keeps going. periodt. πŸ’–


🌈 OPTIONS 🌈

  • -t β€” prepends each line with "YYYYMMDD;HH:MM:SS: " so every entry gets a timestamp glow-up ✨
  • -T format β€” same idea but your choice: prepend each line with the strftime(3) format you specify. bespoke timestamps, we love to see it πŸ’…
  • -l number β€” log file length limit, and it forces truncation. she will cut it off at number. no negotiation. πŸ”₯
  • -F fifo β€” read from fifo instead of a pipe 🧚
  • -p pidfile β€” create a pid file πŸ“

🫢 AUTHOR 🫢

Fredrik Sjoholm <fredrik@sjoholm.com> β€” ty king, we appreciate you πŸ™


⭐ LICENSE ⭐

Licensed under the GNU General Public License. free as in freedom, slay. πŸ‘‘


πŸ’€ heads up bestie: -l number is a forced truncation, meaning she will chop that log file down to size. that's not a gentle suggestion, that's the whole vibe.

that's the whole page, and yes it's from March 2008 and lives in the General Commands Manual under section 1 (FLOG(1)) πŸ’œ go forth and log your little heart out, babe. byeeee βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from