Logging solutions

Logging was solved using Ruby by 2 contestants. Solution sizes: average 576 bytes (shortest: 566; longest: 587).