Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript - Extracting Message Formatter interface #63

Merged
merged 3 commits into from
Feb 14, 2019

Conversation

robertfmurdock
Copy link
Contributor

So mostly this is freehand refactoring (it'd be nice to add a test suite to the JS side here). But additionally, there are two new JS configurable variables at the root, such that someone using the library can modify or replace the message formatting.

I quick put this together because I was adding some logging to an app I've been converting to Kotlin-Js, and couldn't quite get it to produce JSON log lines rather than traditional ones. 🤷🏻‍♂️

Rob Murdock added 3 commits February 13, 2019 18:39
…n message formatter or change output piping style.
…e logging in javascript would want to pass an object reference to the logger rather than a string.
@oshai
Copy link
Owner

oshai commented Feb 14, 2019

Thanks for your contribution!

@oshai oshai merged commit da955dd into oshai:master Feb 14, 2019
@oshai
Copy link
Owner

oshai commented Feb 14, 2019

I added it in 1.6.24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants