Logging

Introduction to Logging in R using log4r

Reading Time: 3 minutes One of the most important aspect of an application is Logging. Since logs provide visibility into the behavior of a running app. Hence logs play a vital role in maintenance and enhancement of an application. However, most of us are already aware with the importance of logging. That’s why we add them in our applications. But one thing that we are not aware of is Continue Reading

Collecting logs in Azure Databricks

Reading Time: 3 minutes Azure Databricks is an Apache Spark-based analytics platform optimized for the Microsoft Azure cloud services platform. In this blog, we are going to see how we can collect logs from Azure to ALA .Before going further we need to look how to setup spark cluster in azure Create a Spark cluster in Databricks In the Azure portal, go to the Databricks workspace that you created, Continue Reading

Is Logback the Solution to Your Logging Problems?

Reading Time: 4 minutes What do you do when you get an error/issue with the code? What is the first thought that comes to your mind? What if you are trying to fix a code that was written by someone else?   That’s right. We check the logs. We all know that Useful logs can provide the developer ( especially when someone has to debug/maintain someone else’s code ) Continue Reading

Akka-http Logging: Logging the Response Time of the Rest API

Reading Time: 2 minutes Sometimes while developing REST API’s we want to log the response time of  our REST APi for the sake of better tuning. We are going to discuss the same case here and will see how to do that in Akka-http . So sometime before while I was working on akka-http while developing a spark-akka-http-couchbase Lightbend activator template , a weird use case came in-front of Continue Reading

How to Implement Cross Cutting Concern using AOP in Scala

Reading Time: < 1 minute In this blog, I have explained that how easily we can implement Cross Cutting Concern such as logging using Aspect Oriented Programming in Scala. These concerns have nothing to do with core business logic. Aspect Oriented Programming is used for encapsulating cross-cutting concerns into re-usable modules. Here we used AspectJ weaver to weave precompiled aspects into project output First we defined an annotation style aspect Continue Reading

QuickKnol: Integrating Logback with Scala

Reading Time: 2 minutes Logback is the successor of Log4j and is one of the better logging frameworks around. In this post, we would quickly see how to set it up on a Scala project and how to start using it. The relevant dependency to be included in your build.sbt is libraryDependencies += “ch.qos.logback” % “logback-classic” % “1.0.1” Once, you have this set, next you have to get a Continue Reading