all repos — honk @ f65dbaacd913fbdf3db44155d420f960b7c221f5

my fork of honk

document logging
Ted Unangst tedu@tedunangst.com
Sun, 06 Feb 2022 00:57:36 -0500
commit

f65dbaacd913fbdf3db44155d420f960b7c221f5

parent

4124f790bbcde57cc9b17f2899b14f1e2446563d

2 files changed, 23 insertions(+), 4 deletions(-)

jump to
M docs/changelog.txtdocs/changelog.txt

@@ -2,6 +2,8 @@ changelog

=== next ++ Flexible logging, to file, syslog, null, etc. + + Low key unread counters. + Images in the hooter.
M docs/honk.8docs/honk.8

@@ -54,18 +54,36 @@ .Ss Options

The following options control where .Nm looks for data. -.Bl -tag -width datadirx -.It Fl datadir +.Bl -tag -width datadirxdirx +.It Fl datadir Ar dir The root data directory, where the database and other user data are stored. This directory contains all user data that persists across upgrades. Requires write access. Defaults to ".". -.It Fl viewdir +.It Fl viewdir Ar dir The root view directory, where html and other templates are stored. The contents of this directory are generally replaced with each release. Read only. Defaults to ".". .El +.Pp +The following options control log output. +Acceptable values include "stderr" (the default), "stdout", "null", "syslog", +or a file name. +syslog messages will be sent to the UUCP facility. +.Bl -tag -width errorlogxlogx +.It Fl errorlog Ar log +The error log. +Something bad has happened. +.It Fl infolog Ar log +The informative messages log. +Something has happened, but probably not too bad. +.It Fl debuglog Ar log +The debug log. +There's probably no reason to care. +.It Fl log Ar log +Set all three logs. +.El .Ss Init Run the .Ic init

@@ -75,7 +93,6 @@ the initial user.

See below about importing existing data. .Ss Operation Run honk. -Log messages are sent to stderr and should probably be redirected to a file. .Ss Customization The funzone contains fun flair that users may add to posts and profiles. Add custom memes (stickers) to the