diff options
author | Ivan Topolnak <ivantopo@gmail.com> | 2013-11-05 18:38:39 -0300 |
---|---|---|
committer | Ivan Topolnak <ivantopo@gmail.com> | 2013-11-05 18:38:39 -0300 |
commit | 2b63540e5fffab545d0846cfb3dab5c0e1d0c9e1 (patch) | |
tree | 56c4ad1f025c9144376cd4463ad4d4a23e37b571 /kamon-core/src/main/scala/kamon/newrelic/NewRelicErrorLogger.scala | |
parent | 5127c3bb83cd6fe90e071720d995cfb53d913e6a (diff) | |
download | Kamon-2b63540e5fffab545d0846cfb3dab5c0e1d0c9e1.tar.gz Kamon-2b63540e5fffab545d0846cfb3dab5c0e1d0c9e1.tar.bz2 Kamon-2b63540e5fffab545d0846cfb3dab5c0e1d0c9e1.zip |
basic separation of concerns between sub-projects
Diffstat (limited to 'kamon-core/src/main/scala/kamon/newrelic/NewRelicErrorLogger.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/newrelic/NewRelicErrorLogger.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/kamon-core/src/main/scala/kamon/newrelic/NewRelicErrorLogger.scala b/kamon-core/src/main/scala/kamon/newrelic/NewRelicErrorLogger.scala deleted file mode 100644 index 4bc49496..00000000 --- a/kamon-core/src/main/scala/kamon/newrelic/NewRelicErrorLogger.scala +++ /dev/null @@ -1,18 +0,0 @@ -package kamon.newrelic - -import akka.actor.Actor -import akka.event.Logging.Error -import akka.event.Logging.{LoggerInitialized, InitializeLogger} -import com.newrelic.api.agent.NewRelic -import NewRelic.noticeError - -class NewRelicErrorLogger extends Actor { - def receive = { - case InitializeLogger(_) => sender ! LoggerInitialized - case error @ Error(cause, logSource, logClass, message) => notifyError(error) - } - - def notifyError(error: Error): Unit = { - noticeError(error.cause) - } -} |