Fixed potential exceptions in ConsoleTarget
Fixed potential exceptions in ConsoleTarget

It was possible to have an invalid code in the message, which would
throw an exception. I've changed the code format to make this very
unlikely to happen, improved the way the codes are read, and ensured
that even if something goes wrong it continues to log.

aura-project/Yggdrasil