@@ -16,6 +16,9 @@ We talk about the bot's development, and we answer questions from bot owners &
1616plugin authors as much as we can. We try to keep it as friendly as possible;
1717sometimes we also just chat about about non-development topics.
1818
19+ If you're coming to IRC with a question, you can often help us help you faster
20+ by :ref: `having your logs ready <faq-logging >`.
21+
1922All conversations are in English (except when someone swears in French).
2023
2124.. __ : https://libera.chat/guides/connect
@@ -31,10 +34,72 @@ configured some templates to help and guide you through the process and
3134hopefully to make it easier for you.
3235
3336Before submitting your bug, you can `search existing issues `__ to see if there
34- is one open already.
37+ is one open already. If no existing issue covers your bug, please :ref: `have log
38+ excerpts ready <faq-logging>` that demonstrate the problem, if possible.
3539
36- Do not hesitate to :ref: `contact us<faq-contact-us> ` if you are unsure about
40+ Do not hesitate to :ref: `contact us <faq-contact-us >` if you are unsure about
3741your bug report.
3842
3943.. __ : https://github.com/sopel-irc/sopel/issues/new/choose
4044.. __ : https://github.com/sopel-irc/sopel/issues
45+
46+
47+ .. _faq-logging :
48+
49+ How to obtain logs?
50+ ===================
51+
52+ When requesting help, you'll probably be asked to provide logs illustrating the
53+ problem. If you :ref: `report a bug <faq-bug-report >`, the form includes a field
54+ for "Relevant logs" that you should fill in if possible.
55+
56+ By default you will find Sopel's logs in the ``~/.sopel/logs `` folder. If
57+ :attr: `~.config.core_section.CoreSection.homedir ` and/or
58+ :attr: `~.config.core_section.CoreSection.logdir ` is specified in Sopel's config
59+ file, logs will be found in ``/path/to/homedir/logdir `` if ``logdir `` is a
60+ relative path, or at ``/path/to/logdir `` if ``logdir `` is an absolute path. (If
61+ Sopel is :doc: `being run as a service <run/service >`, the ``logdir `` should be
62+ an absolute path.)
63+
64+ Log files' names start with :ref: `their associated config file's name
65+ <logging-basename>`, i.e. the :option: `--config <sopel start --config> `
66+ argument's value.
67+
68+ There are two main log types you might be asked to provide: ``sopel `` logs and
69+ ``raw `` logs.
70+
71+ Obtaining ``sopel `` logs
72+ ------------------------
73+
74+ ``<configname>.sopel.log `` files contain everything Sopel does from startup to
75+ shutdown.
76+
77+ In normal operation, the ``INFO `` (default) or ``WARNING ``
78+ :attr: `~.config.core_section.CoreSection.logging_level ` is usually sufficient.
79+ For ambiguous or particularly gnarly problems, you might be asked to enable
80+ ``DEBUG `` logging and reproduce your issue to help Sopel's developers understand
81+ what's happening.
82+
83+ Obtaining ``raw `` logs
84+ ----------------------
85+
86+ For certain problem types, a developer might ask for ``raw `` logs to examine
87+ exactly what Sopel and the IRC server are saying to each other.
88+
89+ These ``<configname>.raw.log `` files are not enabled by default. If requested
90+ by the person helping you in our issue tracker or IRC channel, you can turn
91+ ``raw `` logs on using the :attr: `~.config.core_section.CoreSection.log_raw `
92+ setting in your config file.
93+
94+ .. warning ::
95+
96+ The ``raw `` log may contain sensitive information, e.g. your bot's NickServ
97+ account credentials, its IP address, or channel keys.
98+
99+ Always check the portion of your ``raw `` log that you are sharing for
100+ secrets, and censor any you find!
101+
102+ .. seealso ::
103+
104+ More information about configuring Sopel's logging is available in the
105+ :ref: `Logging ` section.
0 commit comments