Logging solutions

Logging was solved using Scala by 2 contestants. Solution sizes: average 2162 bytes (shortest: 1408; longest: 2917).