Created
April 13, 2020 14:04
-
-
Save arabold/9f4279057650c3c8df5921fec10e9700 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function createSimpleLogger(asJson: boolean): LogHandlerFunc { | |
return function log(logEntry) { | |
console.log(asJson ? JSON.stringify(logEntry) : logEntry); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment