fix Logger#transports length check upon Logger#log

`Logger#transports` seems to be an object so there's no `length` property to test if transports were defined.
Used `Object.keys(Logger#transports).length` instead.