977 Commits

Author SHA1 Message Date
pentarctagon
c00cfe2a05 Add an environment variable to disable logging to file
Fixes #8527
2024-03-17 12:23:31 -05:00
pentarctagon
422fef3f3e update text post logging fix 2024-02-27 10:42:23 -06:00
pentarctagon
6a8d4bc1db 1.19.0-dev 2024-02-19 21:12:01 -06:00
pentarctagon
d1b3ede924 1.17.26 2024-02-19 21:05:54 -06:00
pentarctagon
264c8413d0 pot-update and regenerate doc files 2024-02-19 21:02:14 -06:00
pentarctagon
79ca90648a 2024 copyright update - misc 2024-01-20 22:41:50 -06:00
pentarctagon
78dff4cf8e 1.17.25+dev 2024-01-20 20:04:23 -06:00
pentarctagon
971e05c63a 1.17.25 2024-01-20 20:02:42 -06:00
pentarctagon
b5436a0576 1.17.24+dev 2023-12-16 21:11:49 -06:00
pentarctagon
ce9874868d 1.17.24 2023-12-16 21:10:37 -06:00
pentarctagon
575c255e3c pot-update and regenerate doc files 2023-12-16 21:03:14 -06:00
pentarctagon
9559b07292 1.17.23+dev 2023-11-20 11:32:41 -06:00
pentarctagon
eda0ed3e16 1.17.23 2023-11-20 11:31:45 -06:00
pentarctagon
1c51bd3388 pot-update and regenerate doc files 2023-10-28 09:05:39 -05:00
pentarctagon
00f70f2c54 1.17.22+dev 2023-10-16 23:31:31 -05:00
pentarctagon
fec4f1771d 1.17.22 2023-10-16 23:29:23 -05:00
pentarctagon
3bfb54dd14 pot-update and regenerate doc files 2023-10-16 23:28:17 -05:00
pentarctagon
bad53d2120 1.17.21+dev 2023-09-16 22:43:09 -05:00
pentarctagon
56a6c8284c 1.17.21 2023-09-16 22:42:30 -05:00
Pentarctagon
e90db4a276 1.17.20+dev 2023-08-19 21:05:00 -05:00
Pentarctagon
347745f19c 1.17.20 2023-08-19 21:04:11 -05:00
Pentarctagon
f7bbb10ffb pot-update and regenerate doc files 2023-08-19 21:01:29 -05:00
Gunter Labes
3b389c62f2
Restore output path 2023-07-20 17:44:57 +02:00
Gunter Labes
81ddef667b
Move Doxyfile to doc/doxygen 2023-07-20 17:22:03 +02:00
Pentarctagon
ef8fd5c415 pot-update and regenerate doc files 2023-07-15 22:21:49 -05:00
Pentarctagon
8c1aa790ab pot-update and regenerate doc files 2023-06-17 23:34:20 -05:00
loonycyborg
a6053e0dcd
Clarify docs wrt log file output 2023-06-09 23:54:43 +03:00
Pentarctagon
d3f41831b7 Rename back to wnoconsole and move boolean check. 2023-05-31 12:26:33 -05:00
Pentarctagon
10f7ef26e7 Add --no-con to disable writing to CONOUT.
Fixes #7619
2023-05-29 00:08:55 -05:00
Steve Cotton
5b53be5d2a CMake part of replacing po4a-gettextize with po4a-updatepo
The design of po4a seems to expect it to act as a build system,
running with a config file telling it which files to build. In
version 0.68-1, the po4a-gettextize tool has changed to error out
with a comment that it's not being run the way it expects.

See https://bugs.debian.org/1020821

po4a-updatepo works for now with 0.68-1, although it prints a deprecation
message.
2023-05-29 00:21:51 +02:00
Pentarctagon
b2133d4093 pot-update and regenerate doc files 2023-05-20 22:05:36 -05:00
Pentarctagon
c44cc2742e Copyright update.. 2023-04-29 10:48:11 -05:00
Gunter Labes
0caad54608
Remove wrong documentation 2023-04-24 16:31:22 +02:00
Pentarctagon
0001eee8d1 pot-update and regenerate doc files 2023-04-22 22:30:38 -05:00
Pentarctagon
fc7ec5bec5 pot-update and regenerate doc files 2023-04-15 20:01:53 -05:00
gfgtdf
f8bd32eb15 Deploy and refactor config::optional_child
Previously the config class had an operator bool and
it was a common pattern to use if(const config& = cfg.child(..)).
While this pattern was nice to use. It has severe drawbacks, in
particular it was unclear whether a function that took a config&
parameter allowed "invalid" configs, while most functions
did not, there were some that did. Furtheremore it lead to a few
buggy codes that were unconvered by this change (Not fixed though!),
in particular codes that tested local config objects that were
not references to being invalid, which could never be the case.
This commits replaces those with just `true` in order to not
change behaviour.

Some obvious cases were also removed including for example
things like `assert(config());` There is ony case in the ai code
that i'm not 100% sure of where one implementation of a virtual
function checked for an invalid config and another one that didn't.

With this, all code that check for a config child to be
present now uses config::optional_child which returns an object
that behaves similar to optional<(const) config&>, so it throws
on invalid dereferencing. But it also has operator[string] for
convinience, in particular to make is similary
easy to use the the previous `if (config& = .. child())`.
Also it has a tool DEBUG_CONFIG which tests whether all
optional_config values are checked before they are derefereneced.

Another method manditory_child was
added that throws when the key is not found, which replaces all
occurances of child() that did not check whether the result was
valid. This was neccecary (this= adding a new method instead of
renaming .child) to keep track of converted changes, and be sure
no occurances of child() were accidentally changed to the
throwing version.

We might want to rename one of mandatory_child or optional_child
to just child later. Not sure which one yet. I think it's better
to keep it in the current state (no config::child() ) for a while
though, so that people that currently used child() in their open
prs or other work get an error and not wrongly rely on the previous
behviour of config::child.

The interface of vconfig was not changed in this commit.
2023-04-03 00:39:12 +02:00
Pentarctagon
81330fc785 pot-update and regenerate doc files 2023-03-18 21:39:38 -05:00
Pentarctagon
42c4d22065 pot-update and regenerate doc files 2023-02-19 22:08:56 -06:00
Pentarctagon
292f77a456 pot-update and regenerate doc files 2023-01-14 18:24:11 -06:00
Pentarctagon
ceb05f3d9f Enable logging to file by default. 2023-01-13 12:51:03 +01:00
Pentarctagon
f45bd210d9 pot-update and regenerate doc files 2022-12-17 19:11:50 -06:00
Pentarctagon
0118664f0f pot-update and regenerate doc files 2022-11-19 23:38:25 -06:00
Pentarctagon
910eedeb61 pot-update and regenerate doc files 2022-09-18 23:15:06 -05:00
Pentarctagon
4d76d9a2e3 pot-update and regenerate doc files 2022-08-20 19:55:18 -05:00
Pentarctagon
a380f9e489 Document id in wesnothd config and adjust some wording. 2022-08-16 15:35:09 -05:00
Pentarctagon
76a6bed609 Add additional tables used by wesnothd. 2022-08-16 15:06:34 -05:00
Pentarctagon
db948c00ac Update missed copyright notices. 2022-08-07 16:13:40 -05:00
Pentarctagon
d1833b5cf7 Adds the --log-to-file command line option.
This sets up writing both the cerr and cout streams to a log file, as well as pulls the log rotation logic out of log_windows.*pp into the general logger.

Note that this is meant for usage on macOS and Linux, not Windows. log_windows.*pp has additional functionality in it, as well as a fair bit related to the --wconsole option.
2022-07-24 09:22:50 -05:00
Pentarctagon
765681335a
pot-update and regenerate doc files 2022-07-19 19:26:27 -05:00
Pentarctagon
44e38ae552
pot-update and regenerate doc files. 2022-06-19 09:07:12 -05:00