Compare commits
No commits in common. "28ee576c2a17b08bbc86b0dc15ea9d21a42090ee" and "610d60aafeec3c5c6a83d66f06352b218d48236f" have entirely different histories.
28ee576c2a
...
610d60aafe
2 changed files with 0 additions and 38 deletions
27
README.md
27
README.md
|
@ -42,33 +42,6 @@ docker compose up -d
|
||||||
|
|
||||||
The bot can now be invited with the following URL: `https://discord.com/oauth2/authorize?client_id=<application-id>&scope=applications.commands%20bot&permissions=513`
|
The bot can now be invited with the following URL: `https://discord.com/oauth2/authorize?client_id=<application-id>&scope=applications.commands%20bot&permissions=513`
|
||||||
|
|
||||||
## Logging
|
|
||||||
|
|
||||||
Logging can be configured via a [Logback configuration](https://logback.qos.ch/).
|
|
||||||
The [default logger configuration](bot/src/main/resources/logback.xml) can be overwritten with the `LOGBACK_CONFIGURATION_FILE`
|
|
||||||
variable with the path to the file.
|
|
||||||
|
|
||||||
One can add following example configuration to configure the logger for the `de.hhhammer.dchat.discord.ws` package to log
|
|
||||||
the `DEBUG` level:
|
|
||||||
|
|
||||||
```text
|
|
||||||
<configuration>
|
|
||||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
|
||||||
<encoder>
|
|
||||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
|
|
||||||
</encoder>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<logger name="de.hhhammer.dchat.discord.ws" level="DEBUG"/>
|
|
||||||
|
|
||||||
<root level="INFO">
|
|
||||||
<appender-ref ref="STDOUT"/>
|
|
||||||
</root>
|
|
||||||
</configuration>
|
|
||||||
```
|
|
||||||
|
|
||||||
For more information regarding the logger configuration refer to the [manual](https://logback.qos.ch/manual/index.html).
|
|
||||||
|
|
||||||
## LICENSE
|
## LICENSE
|
||||||
|
|
||||||
The software is licensed under the [MPL-2.0](LICENSE) license.
|
The software is licensed under the [MPL-2.0](LICENSE) license.
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<configuration>
|
|
||||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
|
||||||
<encoder>
|
|
||||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n</pattern>
|
|
||||||
</encoder>
|
|
||||||
</appender>
|
|
||||||
|
|
||||||
<root level="INFO">
|
|
||||||
<appender-ref ref="STDOUT"/>
|
|
||||||
</root>
|
|
||||||
</configuration>
|
|
Loading…
Reference in a new issue