The state of logging in Java

The State of Logging in Java

Nicolas Frankel Developer Tips, Tricks & Resources

When developing an application, chances are that it won’t perform as expected on the first run. In order to check what went wrong, developers in general use debuggers. But experienced developers know that if it happens in production, most debuggers won’t be available. Hence, they pepper the source code with logging statements to help their future self debug the next …

Reasons why Application Logging Should be a part of your APM strategy

Why Application Logging is Critical to Your APM Strategy

vpower Developer Tips, Tricks & Resources, Insights for Dev Managers

More information is always a good thing—especially when it comes to application performance monitoring (APM). One way to gather more information for APM purposes is to leverage application information in addition to environment data. In-context information generated and logged by the application itself can be invaluable when trying to diagnose and resolve anomalies during an application’s lifecycle. This article explains …

What is Log Aggregation?

Log Aggregation 101: Methods, Tools, Tutorials and More

Angela Stringfellow Developer Tips, Tricks & Resources

Log management is a process of handling copious volumes of logs that are made up of several processes, such as log collection, log aggregation, storage, rotation, analysis, search, and reporting. Log aggregation, therefore, is a step in the overall management process in which you consolidate different log formats coming from different sources all into one place to make it easier …

Security Information and Event Management

Why Security Should be Top-of-Mind for Developers

Stackify Developer Tips, Tricks & Resources

Because security is an increasing concern for developers, a new movement is emerging, known as DevSecOps, which encourages developers to bring security and standards to the forefront while building applications. That means there’s good reason to stay on top of security information and event management trends and best practices, as well as the solutions that support it. With that in mind, let’s …

Solving Logback problems

Solving Your Logging Problems with Logback

Eugen Paraschiv Developer Tips, Tricks & Resources

Logback is a logging framework for Java applications, created as a successor to the popular log4j project. In fact, both of these frameworks were created by the same developer. Given that logging is a crucial part of any application for both debugging and audit purposes, choosing an adequate logging library is a foundational decision for any project. There are several …

SIEM Implementation Strategy & Plan

SIEM: A Guide to Successful Implementation, Strategy, and Planning

Stackify Insights for Dev Managers

Security Information and Event Management (SIEM) allows you to get real time analysis on threats and security alerts that are created by network applications and hardware. It controls the storage, manipulation, analysis, and reporting of different security data and enables you to correlate different events and alerts. SIEM plays a role in regulatory compliance and isn’t something that you should ignore. …

Syslog Examples, Tools, and Best Practices

Syslog Tutorial: How It Works, Examples, Best Practices, and More

Stackify Developer Tips, Tricks & Resources

Syslog is a standard for sending and receiving notification messages–in a particular format–from various network devices. The messages include time stamps, event messages, severity, host IP addresses, diagnostics and more. In terms of its built-in severity level, it can communicate a range between level 0, an Emergency, level 5, a Warning, System Unstable, critical and level 6 and 7 which …

Find and fix issues in Hibernate with Retrace

How to Find Hibernate Performance Issues in Development and Production

Thorben Janssen Developer Tips, Tricks & Resources

The Java Persistence API (JPA), and Hibernate ORM as its most popular implementation are used in most Java applications to interact with a relational database. The main reason for their popularity is that they use object-relational mapping to abstract the database interactions and make it very easy to implement simple CRUD operations. But this abstraction also has its downsides. Hibernate …

How Log4J2 Works: 10 Ways to Get the Most Out Of It

Eugen Paraschiv Developer Tips, Tricks & Resources

Log4j2 is the updated version of the popular and influential log4j library, used extensively throughout the Java ecosystem for so many years. Version 2.x keeps all the logging features of its predecessor and builds on that foundation with some significant improvements, especially in the area of performance. And of course, given how instrumental logging is for any application, both for …

DotNet Errors and How to Fix Them

Top .NET Software Errors: 50 Common Mistakes and How to Fix Them

Stackify Developer Tips, Tricks & Resources

Developing in .NET provides several powerful benefits, including less overall code, improved security, ease of updates/changes, and language independence. That said, the system isn’t without errors and problems. From common exceptions to coding mistakes to incorrect assumptions, most of these issues come down to programmer error. The list below shares the 50 top .NET software errors from around the web. …

Java Logging Sins

9 Logging Sins in Your Java Applications

Eugen Paraschiv Developer Tips, Tricks & Resources

Logging runtime information in your Java application is critically useful for understanding the behavior of any app, especially in cases when you encounter unexpected scenarios, errors or just need track certain application events. In a real-world production environment, you usually don’t have the luxury of debugging. And so, logging files can be the only thing you have to go off …

What are Docker Logs?

Docker Logging 101: Best Practices, Analytics Tools, Tutorials, and More

Stackify Developer Tips, Tricks & Resources

For troubleshooting code, few things are more valuable to developers than logs. That’s just one reason we built Retrace, which combines logs, errors, and code level performance in a single pane of glass to give you the insights you need to quickly identify and rectify the source of problems. With the widespread popularity of Docker’s container-based solution for apps, it’s …

Ultimate log4j Tutorial for Java Logging – Best Practices, Resources and Tips

Matt Watson Developer Tips, Tricks & Resources

Logging is a critical feature of any application. In this tutorial we will cover some log4j best practices that can help you get started and improve how you do logging with log4j. What is log4j and why should you use it, or any Java logging framework? A logging framework is important for any Java/J2EE based application. By changing the configuration, …

C# Exception Handling Best Practices

Matt Watson Developer Tips, Tricks & Resources

Welcome to Stackify’s guide to C# exception handling. In this article we cover the following topics: Basics about C# Exceptions, including examples Common .NET Exceptions How to Create Your Own Custom C# Exception Types How to Find Hidden .NET Exceptions C# Exception Logging Best Practices What is an Exception? Exceptions are a type of error that occurs during the execution …

Microsoft.Extensions.Logging

How to Use LoggerFactory and Microsoft.Extensions.Logging for .NET Core Logging With C#

Matt Watson Developer Tips, Tricks & Resources

If you have used .NET Core, you have probably battled with the new built-in .NET Core LoggerFactory which is in Microsoft.Extensions.Logging. It has created a lot of confusion around logging with ASP.NET Core. At Stackify, we have logging integrations for log4net, NLog, Serilog, and our direct API. We have a lot of experience with building logging appenders and libraries to work with various …

Finding Hidden Exceptions in Your Application with Prefix

Matt Watson Developer Tips, Tricks & Resources

Prefix enables developers to easily see what their code is doing as they write and test their code, including SQL queries, HTTP calls, errors, logs, and much more. One of the best features of Prefix is its ability to see all of the exceptions that are occurring in your code. There are 3 types of exceptions: Unhandled – the user got a …