Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Utilities

    flog 1.7

    Download button

    Downloads: 621  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Fredrik Sjoholm | More programs
    GPL / FREE
    May 19th, 2006, 17:53 GMT
    ROOT / Utilities

     Read user reviews (0)  Refer to a friend  Subscribe

    flog description

    flog (file logger) is a program that reads input from STDIN and writes to a file.

    flog (file logger) is a program that reads input from STDIN and writes to a file.

    If SIGHUP is received, the file will be reopened, allowing for log rotation [see logrotate(8) on RH.]

    The log file will only be reopened if flog detects that rotation has occurred (ie, old file gone or inode changed). flog is extremly small (less than 500 bytes memory footprint.)

    Usage: pipeline | flog [-t] logfile # SIGHUP will reopen logfile
    -t prepend each line with "YYYYMMDD;HH:MM:SS: "
    -T prepend each line with specified date format

    Usage:

    Typically flog is used to log STDERR output from a daemon. It's also very useful with Apache. This way you never have to HUP apache itself:

    ErrorLog "|/bin/flog /httpd/logs/error_log"

    Typical example:

    (mydaemon >stdout.file) |& flog [-t] stderr.file

    this will redirect daemon's STDOUT to a file called "stdout.file" and STDERR (thru flog) to "stderr.file". (example uses zsh: the best shell! like bash but better)

    The -t option causes a timestamp to be prepended to each line.

    The -T < format > option causes a timestamp to be prepended to each line with a user specified time format. See strftime(3) for how to specify the format.

    What's New in This Release:

    · Added -l option to limit file length



    Product's homepage

      


    TAGS:

    file logger | STDIN input | change detection | flog | logger | reads

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM