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

feat(log4j):add rollbar support #359

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liebstein
Copy link
Contributor

No description provided.

@liebstein liebstein changed the title Setting version to 0.0.93-SNAPSHOT feat(log4j):add rollbar support Aug 11, 2020
@liebstein liebstein force-pushed the add-rollbar-to-metorikku branch 2 times, most recently from e926142 to 9d764e0 Compare August 11, 2020 16:20
log4j.appender.ROLLBAR=com.nextdoor.rollbar.RollbarLog4jAppender
log4j.appender.ROLLBAR.AccessToken=${ROLLBAR_ACCESS_TOKEN}
log4j.appender.ROLLBAR.Environment=${ROLLBAR_ENV:-production}
log4j.appender.ROLLBAR.layout=org.apache.log4j.PatternLayout
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe let's start with error?

@@ -16,7 +16,7 @@
#

# Set everything to be logged to the console
log4j.rootLogger=INFO,console
log4j.rootLogger=INFO,console,ROLLBAR
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work if rollbar is not in this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

@@ -69,7 +69,8 @@ libraryDependencies ++= Seq(
"org.apache.avro" % "avro" % "1.8.2" % "provided",
"org.apache.hive" % "hive-jdbc" % "2.3.3" % "provided" excludeAll(excludeNetty, excludeNettyAll, excludeLog4j, excludeParquet),
"org.apache.hadoop" % "hadoop-aws" % "2.7.3" % "provided",
"com.amazon.deequ" % "deequ" % "1.0.4" excludeAll(excludeSpark)
"com.amazon.deequ" % "deequ" % "1.0.4" excludeAll(excludeSpark),
"com.nextdoor.rollbar" % "rollbar-log4j" % "1.0.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Or try fixing with a shutdown hook?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the problem is they haven't implemented the close function there...

log4j.appender.ROLLBAR.AccessToken=${ROLLBAR_ACCESS_TOKEN}
log4j.appender.ROLLBAR.Environment=${ROLLBAR_ENV:-production}
log4j.appender.ROLLBAR.layout=org.apache.log4j.PatternLayout
log4j.appender.ROLLBAR.Threshold=${ROLLBAR_ENV:-WARN}
Copy link
Contributor

Choose a reason for hiding this comment

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

ROLLBAR_ENV? Warn should be error

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.

None yet

2 participants