module

Patty::Util::ActionLog

Append-only action log shown on the Logs page. Every user-visible action (start/stop, route changes, Caddy validate/reload) lands here.

Constants

MAX_FILE_BYTES = (5 * 1024) * 1024
MAX_TAIL_BYTES = 1024 * 1024
ROTATIONS = 3

Class methods

log(message : String)
Source
rotate_caddy_before_start!
Source
tail(lines : Int32 = 200) : Array(String)
Source
tail_file(path : String, lines : Int32 = 200) : Array(String)
Source