Skip to content

Commit 64582e5

Browse files
author
Assaf Liebstein
committed
feat(log4j):add rollbar support
1 parent eed02a5 commit 64582e5

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ libraryDependencies ++= Seq(
6969
"org.apache.avro" % "avro" % "1.8.2" % "provided",
7070
"org.apache.hive" % "hive-jdbc" % "2.3.3" % "provided" excludeAll(excludeNetty, excludeNettyAll, excludeLog4j, excludeParquet),
7171
"org.apache.hadoop" % "hadoop-aws" % "2.7.3" % "provided",
72-
"com.amazon.deequ" % "deequ" % "1.0.4" excludeAll(excludeSpark)
72+
"com.amazon.deequ" % "deequ" % "1.0.4" excludeAll(excludeSpark),
73+
"com.nextdoor.rollbar" % "rollbar-log4j" % "1.0.2"
7374
)
7475

7576
// Temporary fix for https://github.com/databricks/spark-redshift/issues/315#issuecomment-285294306

src/main/resources/log4j.properties

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717

1818
# Set everything to be logged to the console
19-
log4j.rootLogger=INFO,console
19+
log4j.rootLogger=INFO,console,ROLLBAR
2020
log4j.appender.console=org.apache.log4j.ConsoleAppender
2121
log4j.appender.console.target=System.err
2222
log4j.appender.console.layout=org.apache.log4j.PatternLayout
@@ -38,4 +38,11 @@ log4j.logger.org.apache.hadoop.hive.metastore.RetryingHMSHandler=FATAL
3838
log4j.logger.org.apache.hadoop.hive.ql.exec.FunctionRegistry=ERROR
3939

4040
log4j.logger.com.yotpo.metorikku=INFO
41-
log4j.logger.org.apache.hudi=INFO
41+
log4j.logger.org.apache.hudi=INFO
42+
43+
# Rollbar support
44+
log4j.appender.ROLLBAR=com.nextdoor.rollbar.RollbarLog4jAppender
45+
log4j.appender.ROLLBAR.AccessToken=b831f32253a645a18fabad94c266508a
46+
log4j.appender.ROLLBAR.Environment=production
47+
log4j.appender.ROLLBAR.layout=org.apache.log4j.PatternLayout
48+
log4j.appender.ROLLBAR.Threshold=ERROR

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version in ThisBuild := "0.0.92"
1+
version in ThisBuild := "0.0.93-SNAPSHOT"

0 commit comments

Comments
 (0)