3 ms·
How many of these can output a "standard" access log? Instructions for how to do that would be a helpful addition to this page.
by forgotmypw 7y ago
How many of these can output a "standard" access log?
Instructions for how to do that would be a helpful addition to this page.
- kragen 7y agoThe Python one does.
- beizhia 7y agoThe Crystal version can. I just commented an update for it that will run on 0.32.1, but for logging you can include the HTTP::LogHandler: crystal eval 'require "http/server"; server = HTTP::Server.new([HTTP::LogHandler.new, HTTP::StaticFileHandler.new(".")]); server.bind_tcp(8080); server.listen'