Refer to FAQ entry on log block change, and some other relnotes updates.

[skip ci]
This commit is contained in:
Bram Matthys 2021-10-30 10:43:05 +02:00
parent a6fa68f14a
commit c47d64605a
No known key found for this signature in database
GPG key ID: BF8116B163EAAE98
2 changed files with 19 additions and 4 deletions

View file

@ -11,7 +11,7 @@ geoip support and remote includes support built-in.
Additionally, things are more customizable such as what gets sent to
which snomask. All the +vhoaq channel modes are now modular as well,
handy for admins who don't want or need halfops or +q/+a.
Who gets to see what in WHOIS is also customizable in detail.
For WHOIS it is now customizable in detail who gets to see what.
Breaking changes
-----------------
@ -27,7 +27,7 @@ Breaking changes
destination {
file "ircd.log" { maxsize 100M; }
}
}
}
```
Enhancements
@ -40,8 +40,10 @@ Enhancements
which everyone should include from unrealircd.conf. That is, unless you
wish to completely reconfigure which logging goes to which snomasks
yourself, which is also an option now.
* See ... on the new snomasks - lots of letters changed!
* See ... on how to change your existing log { } blocks for disk logging
* See [Snomasks](https://www.unrealircd.org/docs/Snomasks#UnrealIRCd_6)
on the new snomasks - lots of letters changed!
* See [FAQ: Converting log { } block](https://www.unrealircd.org/docs/FAQ#old-log-block)
on how to change your existing log { } blocks for disk logging.
* New support for JSON logging to disk, instead of the default text format.
JSON logging adds lot of detail to log messages and consistently
expands things like 'client' with properties like hostname,

View file

@ -306,6 +306,19 @@ int config_test_log(ConfigFile *conf, ConfigEntry *block)
}
}
if (!any_sources && !destinations)
{
unreal_log(ULOG_ERROR, "config", "CONFIG_OLD_LOG_BLOCK", NULL,
"$config_file:$line_number: Your log block contains no sources and no destinations.\n"
"The log block changed between UnrealIRCd 5 and UnrealIRCd 6, "
"see https://www.unrealircd.org/docs/FAQ#old-log-block on how "
"to convert it to the new syntax.",
log_data_string("config_file", block->file->filename),
log_data_integer("line_number", block->line_number));
errors++;
return errors;
}
if (!any_sources)
{
config_error("%s:%d: log block contains no sources. Old log block perhaps?",