fix undefined level emitted when .log is used
Merge pull request #4 from danmilon/fix-message-emit

fix undefined level emitted when .log is used