Logging solutions

Logging was solved using Lua by 2 contestants. Solution sizes: average 2149 bytes (shortest: 1366; longest: 2933).