Skip to main content

Module tail

Module tail 

Source
Expand description

The last access-log lines in memory, and live followers of new ones, for the admin API (18.10.0). Off until enable: then each batch the access-log sink writes out (every 100 ms, off the request path) is also split into lines here.

Constants§

CAPACITY
Lines kept for recent.
MAX_FOLLOWERS
Followers at once; more are refused.
MAX_LINE
A longer line is cut to this many bytes (on a character boundary).

Functions§

enable
Start keeping lines (the admin listener does, at start).
follow
Add a follower: false when MAX_FOLLOWERS already follow.
recent
The last n lines, oldest first.