Logging

Visualizing data - blue matrix with data, electronic, digital, abstract, dark blue, data science

Logging in Spring WebFlux

Reading Time: 2 minutes Overview: DEBUG level logging in Spring WebFlux is compact, minimal, and human-friendly. Itfocuses on high-value bits of information that are useful over and over again vs others that areapplicable only when debugging a specific issue. TRACE level logging generally follows the same principles as DEBUG (and for example also should notbe a firehose) but can be used for debugging any issue. In addition, some log Continue Reading

Spring Boot microservices with logging using Spring Cloud GCP

Reading Time: 4 minutes What is Spring Boot and Spring Cloud GCP? Spring Boot: Spring Boot is a java-based framework i.e. free and open-source.  Using Spring boot you can create java (web)apps mostly based on microservices  architecture. It makes it easier for you to focus on development work by simply  providing default dependencies that you may require in your project (it takes care of  boiler-plate code). Spring Cloud GCP: Continue Reading

terraform

Debugging/Logging in Terraform

Reading Time: 2 minutes Debugging is a very important part of developers’ life as it helps in understanding the root cause whenever any piece of code breaks! So, In this blog, we will understand how to set up the debugging while setting up an Infrastructure using terraform. Prerequisite Basic knowledge of Terraform Enable Debugging in Terraform! Terraform provides the options to enable detailed logging/debugging with the help of the Continue Reading

gcp operation suite

Google Cloud Operations Suite

Reading Time: 6 minutes Introduction Google Cloud’s operations suite (formerly Stackdriver) is a set of tools to help you monitor, debug, and trace your applications and infrastructure running in Google Cloud Platform (GCP) to ensure good performance and availability.   What is the operations suite? Google Cloud’s operations suite is made up of products to monitor, troubleshoot and operate your services at scale, enabling your DevOps, SREs, or ITOps Continue Reading

Stern: A Tool to Read Logs Across Multiple Pods.

Reading Time: 3 minutes Kubernetes is a scalable container orchestrator. On the one end, it can support complex enterprise systems with thousands of apps and hosts, on the other end, it is quite light-weighted to support IoT appliances. In the absence of centralized logging and aggregation service in Micro Kubernetes clusters, kubectl logs is there for survival. It is good for a pod but if you want to debug your distributed Continue Reading

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