Home » Tag Archives: Logging

Tag Archives: Logging

Crashlytics and Android: Clean Way to Use Custom Crash Reports?

I was implementing Firebase Crashlytics for crash reporting for an Android app, and came across their documentation for customizing the reports. Having things like additional logging and user info for non-fatal exceptions are great, but what I wanted to use were the custom keys that could be used to log application state when the exception occurs. What’s really nice is that the state info is clearly displayed in the Firebase console. My ...

Read More »

Logging Without a Static Logger

How do you organize logging in your applications? I mean web applications or command line apps, or even mobile apps. I bet you have some global variable or a singleton, known as Logger, which has a few methods like info(), error(), and debug(). You configure it when the app starts, or it configures itself via something like log4j.properties, and logs ...

Read More »

Log Aggregation using ELK Stack

java-interview-questions-answers

1. Introduction With the use of microservices, it has become easy to create stable distributed applications and get rid of many legacy problems. But the use of microservices has introduced a few challenges also and Distributed log management is one of them. As microservices are isolated hence they don’t share database and log files, so it becomes challenging to search, ...

Read More »

Search for time interval in logs

java-interview-questions-answers

Intro This post is indirectly related to my mini-series about log analysis. It would be great to read the two main parts to better understand what I’m talking about. Part 1, Part 2. This post describes one important problem I ran into while implementing the IDE approach. Task Description When someone is working with logs usually he or she needs to investigate ...

Read More »

IDE approach to log analysis pt. 2

java-interview-questions-answers

Intro In the first part I explained the theoretical approach to log analysis that I think is best for a sustain engineer. This engineer doesn’t need to analyze logs immediately as they come but instead is focused on a deep analysis of complicated issues. In this second part I’ll show that many search scenarios can be covered with one sophisticated template and ...

Read More »

IDE approach to log analysis pt. 1

java-interview-questions-answers

Intro I think most software engineers understand the importance of logs. They have become part of software development. If something doesn’t work we try to find the cause in the logs. This could be enough for simple cases when a bug prevents an application from opening a window. You find the issue in the logs, look it up on Google ...

Read More »

Get More Out of Splunk: Enrich Your Logs With 10x More Data

Access net new machine data, beyond log files, to enrich your Splunk instance and get real insight into application health You’ve definitely heard of Splunk, you might even be using it at your company. It’s a powerful data aggregator that helps to simplify machine data for dev and ops teams, allowing them to capture, index and correlate real-time data in ...

Read More »

[FREE EBOOK] Lessons from analyzing over 600,000 Java projects

What does it take to build an informed error handling workflow? Investigating and resolving application errors in production is critical for maintaining performance and reliability. But, that shouldn’t mean spending endless hours doing it. To understand why troubleshooting in production can be such a headache, we set out to discover the “truth” behind our frequently unexceptional exceptions. After analyzing more ...

Read More »

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 »