Today I had to start a little web server that prints out the HTTP requests received and I used Ruby’s WEBBrick for that.

The trouble is that it has its own logging built in that interfered with what I was trying to log.

Here is how you disable logging completely:

dev_null = WEBrick::Log::new("/dev/null", 7)
server ={ :Port => 9000, :Logger => dev_null, :AccessLog => dev_null })