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

Remove log4j #328

Merged
merged 8 commits into from
Mar 12, 2018
Merged

Remove log4j #328

merged 8 commits into from
Mar 12, 2018

Conversation

Duhemm
Copy link
Collaborator

@Duhemm Duhemm commented Mar 12, 2018

No description provided.

Copy link
Contributor

@jvican jvican left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐰 🚀 🔝 This feels so good.

Really happy that this is possible. I thought it wasn't. Let's battle test it a little bit more locally and we merge!

.build()

appender
private def printTrace(line: String): Unit = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we add a method for Throwable here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh no, just realized that the method targeting Throwable comes inherited.

outAppender.start()
errAppender.start()
private def print(msg: String, fn: String => Unit): Unit = {
if (msg == null) ()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implementation is pretty weird. why .lines and why the NPE guard? Is there a way we can remove that from this core logging API endpoint?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.lines is to have the prefix on every line (think log.error("foo\nbar")). The NPE guard is to make sure .lines won't crash. There are cases where exception.getMessage is null.

assertTrue("`logger2` received messages of `logger1`",
!msgs2.exists(_.startsWith("Compiling")))
assertTrue("`logger2` received verbose messages of `logger1`",
!msgs2.exists(_.startsWith(debugPrefix)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@jvican jvican merged commit bee471d into master Mar 12, 2018
@jvican jvican deleted the fix/remove-l4j branch September 28, 2018 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants