flog icon

flog For Linux

  n/a
GPL    

flog (file logger) is a program that reads input from STDIN and writes to a file. #File logger  #STDIN input  #Change detection  #Flog  #Logger  #Reads  

Description

Free Download

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

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

flog 1.7

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  filename:
flog-1.7.tar.gz
  1 screenshot:
flog - screenshot #1
  main category:
Utilities
  developer:
  visit homepage

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

Zoom Client 6.0.4.38135

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

% discount
Windows Sandbox Launcher
  • Windows Sandbox Launcher
  • 4k Video Downloader
  • Context Menu Manager
  • 7-Zip
  • calibre
  • ShareX
  • IrfanView
  • Bitdefender Antivirus Free
  • Microsoft Teams
  • Zoom Client
essentials


Click to load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy