🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #318421

Re: yamn-0.2.5 testing

#318421
From: Zax
Date: Sun, 06 Feb 2022 17:53
81 lines
4270 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sat, 29 Jan 2022 14:05:39 -0000 (UTC), Zax wrote in
Message-Id: <slrnsvaidj.e3v.admin@fleegle.mixmin.net>:

> Hi,
>
> I've been doing some work on the config/flag handling in yamn.  Since it
> was released there have been credible moves to standardise config file
> formats. I've consequently decided to convert it to use a YAML format
> config file.  Some key points to note:-
>
> * v0.2.5 is not compatible with the config file from older versions.  It
>   needs to be re-coded into YAML format.
> * Running "yamn --debug" will print the configuration in YAML format.
>   If no config file is found (see below) the defaults will be output.
> * yamn config is now a Go package with unit tests.  This has no impact
>   on usage but helps with development and debugging.
>
> Config file location
> - --------------------
> yamn will try quite hard to find a configuration file.  In order of
> precedence (highest first):-
>
> * If the --config flag points to a file that exists, it will be used.
> * If the YAMNCFG environment variable points to an existing file, use
>   that file.
> * If there is a yamn.yml in the current directory, use it.
> * If the --dir flag was specified, look for a yamn.yml in the directory
>   specified.
> * If a yamn.yml file exists in the user's homedir, use it.
> * Lastly, use /etc/yamn.yml if it exists.
> * If all attempts fail, issue a warning and go with defaults
>
> The output from "yaml --debug" will include:-
> files:
>   config: <path-to-config>
> This will indicate what config file will be read.  Consider that it
> might vary depending on what directory you run it from (if there is a
> yamn.yml in the current directory).

Hi again,

yamn-0.2.6 is now available for downloading and compiling.  This
incorporates the previous changes described above and also some changes
in the logging process.  The format of log content will look very
slightly different but, under the covers, the handling is all new.

There are two logging options:-
* logtofile: yes/no (this is unchanged)
* logtojournal: yes/no (this is new)
Setting both options to "no" will result in logs being sent to stdout.

As the name suggests, logtojournal will cause yamn to write to the
systemd journal (if it's available).  This is only of interest on Unix
systems with systemd.

Thanks to those who tested 0.2.5 and provided feedback.

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEJHudPu4ysYQcZBcigyyPTc2QQmMFAmIACxcACgkQgyyPTc2Q
QmPVJg//Y5Sg73+86GuO1jJZgxBevdnqz0EEy6ONpYZesdN3imsJCtzP7ESGyFwD
rIvfH81Sy2sEExheVYrLlg/NZ4lrDiNkmJNDSoUd57AdJCaH5NEnCBIobXvBhATl
DnRi40OGVvCWFb/ndFMd0RfT/mGcCiEfpY699DRToTIwG9NwNzYqwIe3PvgJ8RDy
wsVAN0hlg7lJpjkogBmuBVjJNk5BCgV3jqVWAGywz/i+5bNHIEAT5c7BzhefE6z7
j9ij4IVqiF9N+1k+EgtMyZfEe+TzwV4+pdMLMyduTcaw4YQ49VwLR+qh6l3XKCHu
etUjYHh8/vojDrHYeWuo4zlzRjdDP4S11WTeD/oozFlZXT3YhiGFhFu+Dua+xui6
/HLhdwAkcOxl8qr8KQyV8IDcRk7ZqJe0JvOgrXpkqD0Eh37w1JKFDGFmEYLtQIOv
Fek1O4TbvF5aaBSMl8brEGGTbgBHBsuuxwHE5SjWTokRKdmcIeQvIQIAVuptgi/q
1ZNHhNKkAh4iopFxXpB5rKa2oZPRawrppDdzFI8fz9Fxm+SeQupApndrlC2O75sa
oynfX+pgA0fdcRPPQ7iNQzDEhr1Vy2btaL1RaZZ4sRJxyb/q77oCrNHkQZ8KQcZt
BnQgMYmfWlR9mC53HxzVyLl7uDH6QjpzWarUIrO5zG3kgpQApHg=
=fupk
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
ssb  rsa4096/832C8F4DCD904263 created: 2019-05-04 expires: 2024-05-02 usage: S
Technical Details
Message-ID: <slrnt002on.e3v.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <slrnsvaidj.e3v.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnt002on.e3v.admin@fleegle.mixmin.net>
Subject: Re: yamn-0.2.5 testing
Date: Sun, 06 Feb 2022 17:53:27 +0000
From: Zax <admin@mixmin.net>
References: <slrnsvaidj.e3v.admin@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Sun, 6 Feb 2022 17:53:27 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="c4af4a3027e8317d29ea238d8aa6bb2f616aa3fc"; logging-data="1758427"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.4-2 (Linux)