Replies: 2 comments
-
SWS does not support file logging. However, in Linux/BSDs you could achieve that by redirecting SWS stdout output to a file. touch /var/log/sws.log
chmod 640 /var/log/sws.log
chown my-user:my-group /var/log/sws.log
static-web-server --port 8787 --root ./my-public-dir --log-level "info" >> /var/log/sws.log 2>&1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
if it runs in a docker container docker logs -f sws-web-1 &> /var/log/swsweb.txt & |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Great job on SWS. Thank you
I do not find any option to write the logs that appear on screen with the --log-level info option.
Is there any way of writing SWS's output to a log file in /var/log/, or to /var/log/syslog?
Beta Was this translation helpful? Give feedback.
All reactions