I'm a lumberjack and I'm OK

Logging updates
(and one json encoding fix)