1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Document web socket logging.

This commit is contained in:
Cedric Beust 2017-02-09 15:13:03 -08:00
parent 603cea30e4
commit 116188fb62
2 changed files with 18 additions and 3 deletions

View file

@ -22,9 +22,7 @@ import javax.annotation.Nullable
* The callbacks are used to initialize and clean up the state before and after each command, so that Kobalt's state
* can be properly reset, making the server reentrant.
*
* To enable websocket debugging, launch with:
* -Dorg.slf4j.simpleLogger.defaultLogLevel=debug
* More logging documentation: https://www.slf4j.org/apidocs/org/slf4j/impl/SimpleLogger.html
* To enable websocket debugging, uncomment the "debug" <root> tag in logback.xml.
*/
class KobaltServer @Inject constructor(@Assisted val force: Boolean, @Assisted @Nullable val givenPort: Int?,
@Assisted val initCallback: (String) -> List<Project>,

View file

@ -0,0 +1,17 @@
<configuration debug="false">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<!--
<root level="debug">
<appender-ref ref="STDOUT" />
</root>
-->
</configuration>