Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How many of these can output a "standard" access log?

Instructions for how to do that would be a helpful addition to this page.



The 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'


The Python one does.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: