mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 00:32:14 +01:00
371dd96e3e
My pull request changes the logging documentation that is visible here: https://docs.gitea.io/en-us/logging-configuration/ The reason behind the changes is that for some time I've found the logging documentation confusing, and wanted to give a try at making it more clear. --- If you find the existing changes to be ok, please don't merge yet, as I have further ideas which I want to discuss with you before making the changes. ### Swap the "Log Groups" and "Log outputs" sections. I want to move the "Log outputs" section before the "Log Groups" section. The reason is that the "Log Groups" section refers to ini sections that are only later explained, and to concepts that are general and should be documented in "Log outputs" or a different section. This change is essentially a swap of the "Log Groups" and "Log outputs" sections. That way the doumentation would follow the structure in which the ini file is built: first explaining the outer sections, and then the inner ones ([log], [log.name], [log.name.default], ...) ### Explain the workings of ambigous settings below the settings listing Right now the basics of a setting is shown later than the explanation of its special workings, for example with `FILE_NAME` at [the file output mode](https://docs.gitea.io/en-us/logging-configuration/#file-mode) (well, if the first changes are taken into account). Currently I have `TODO` witten at 2 settings, which I have to figure out how do they exactly work before I can document them. ### New section about [log] New section after "Collecting Logs for Help" about how the top level [log] itself works and what can go there. Currently, variables that directly go into [log] are noted throughout the whole document. --- Please let me know what you think about the changes. A counterargument that I myself see is that some of this is already present in the cheatsheet, but I think it would be better to have [this document](https://docs.gitea.io/en-us/logging-configuration/) as a throrough explanation of how logging is configured, and the cheatsheet would only have a short outline of the possible sections and variables. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> |
||
---|---|---|
.. | ||
advanced | ||
developers | ||
features | ||
help | ||
installation | ||
packages | ||
translation | ||
upgrade | ||
usage | ||
advanced.en-us.md | ||
advanced.fr-fr.md | ||
advanced.zh-cn.md | ||
advanced.zh-tw.md | ||
developers.en-us.md | ||
developers.zh-cn.md | ||
developers.zh-tw.md | ||
features.en-us.md | ||
features.zh-cn.md | ||
features.zh-tw.md | ||
help.en-us.md | ||
help.fr-fr.md | ||
help.zh-cn.md | ||
help.zh-tw.md | ||
installation.en-us.md | ||
installation.fr-fr.md | ||
installation.zh-cn.md | ||
installation.zh-tw.md | ||
packages.en-us.md | ||
translation.de-de.md | ||
translation.en-us.md | ||
translation.zh-tw.md | ||
upgrade.en-us.md | ||
upgrade.fr-fr.md | ||
upgrade.zh-cn.md | ||
upgrade.zh-tw.md | ||
usage.en-us.md | ||
usage.zh-cn.md | ||
usage.zh-tw.md |