Several features:

- Ability to serve static files, HTML and CSS are supported so far
 - Consequently, show a simple HTML form to enter the parameters when
   navigating to / (or /index.html).
 - Make the server multi-threaded (in a rather primitive way so far).
 - Use logback instead of the simple-slf4j logger.
This commit is contained in:
Manuel Friedli 2022-01-27 22:07:00 +01:00
parent cd29c6fe75
commit 4d0c5f5c18
7 changed files with 327 additions and 94 deletions

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<shutdownHook class="ch.qos.logback.core.hook.DelayingShutdownHook"/>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are by default assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="STDOUT"/>
</root>
<logger name="ch.fritteli.labyrinth.server.StaticResourcesFileHandler" level="debug"/>
</configuration>