Every log message formatted by the layouts will invoke this bit of ruby code. Using the backticks to open a child process and pipe IO is costly. Also, the `hostname` command does not exist on windows machines.

Instead, try the `gethostname` method on the `Socket` class. It is much more idiomatic ruby.

```ruby
'hostname' => 'Socket.gethostname'.freeze
```