Home » Tag Archives: Logging

Tag Archives: Logging

The value of deliberate logging

Your logs tell a story – or at least they should be. It is safe to assume that all software applications have some type of logging. With logging in this context I mean messages generated in response to events occurring in an application from its deployment until its undeployment. These messages are usually transported to a different system for consumption. ...

Read More »

6 Log Management Tools You NEED to Know (And How to Use Them)

java-interview-questions-answers

Without the right tools to aggregate and parse your log data, finding and understanding the information you’re looking for is nearly impossible There are endless uses for logs because the logs themselves are endless. Application logs, security logs, BI logs, Lincoln logs (Ok, maybe not)… Setting aside security, BI and childhood fun for a moment, even looking specifically at uses ...

Read More »

[FREE EBOOK] The Complete Guide to Java Logging in Production

How the World’s Leading Companies Choose How and What to Log (Based on analysis of GitHub’s top 400,000 repositories) It’s no secret that log files are noisy and difficult to navigate. With seemingly endless data coming in from our applications, the uses for such data must also be endless. Or so we thought. The abundance of log aggregation and analyzer ...

Read More »

Custom Logs in Apache Spark

Have you ever felt the frustration of Spark job that runs for hours and it fails due to infra issue. You know about this failure very late and waste couple of hours on it and it hurts more when Spark UI logs are also not available for postmortem. You are not alone! In this post i will go over how ...

Read More »

Free eBook: The Complete Guide to Java Logging in Production

The Complete GitHub Logging Research: How the World’s Top Companies Choose How and What to Log We all use log files to monitor our applications in production. Some of us prefer using log management tools like Splunk or ELK, while others sift through raw logs on their notepad or terminal. It doesn’t matter if you choose the former or the ...

Read More »

5 Shocking Stats That Prove Logs Are Inadequate

We’re all guilty of logging malpractice. Don’t think so? These statistics might change your mind We won’t sit here and ask you questions with obvious answers like, do you use log files to monitor your application in production? We all use logs, and there can be useful information stored there if you know how to find it. But, logs are ...

Read More »

How to fix Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory in Java

This error means your code or any external library you are using in your application is using the SLF4J library, an open source logging library, but it is not able to find the required JAR file e.g. slf4j-api-1.7.2.jar hence it’s throwing Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory. If you look at the error, you will see that it’s saying it is not ...

Read More »

Log Unexpected Switch Options

There are many things a Java developer can do to make his or her own life and the lives of others maintaining that code easier. In this post, I’m going to look at a very easy approach a developer can take to make things easier for everyone. The point of this post will likely seem obvious to everyone reading it, ...

Read More »

Allocation free logging with log4j2

Introduction Recently I was working for a client trying to remove some GC pauses for a large well crafted Java system. After profiling I realised that most of the garbage was being produced by logging!! Was there a simple unobtrusive way to remove all that allocation?  Turns out there was :) Which framework should I use for GC free logging? ...

Read More »