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 Why is this topic so important? In modern languages like C#, “problems” are typically modeled …

How to Check Website Logs

Michiel Mulders Developer Tips, Tricks & Resources

Have you ever looked at your website logs and realized they don’t make sense to you? Maybe your log levels have been abused, and now every log categorizes as “Error.” Or your logs fail to give clear information on what went wrong, or they reveal sensitive information that hackers may harvest. Fixing these problems is possible! Let’s explore how you …

Why You Should Go Serverless for DevOps

Hiren Dhaduk Developer Tips, Tricks & Resources

Over the last decade, DevOps has become an important part of software engineering culture, influenced by the wide adoption of microservices, containers and cloud computing. A recent step in the evolution of cloud-based and microservice architecture is the serverless computing – a code execution model where the cloud provider takes total responsibility for the operating system and hardware management. The …

Log 4Net Guide for .NET Logging

Log4net for .NET Logging: The Only Tutorial and 14 Tips You Need to Know

Matt Watson Developer Tips, Tricks & Resources

If you’ve been writing code for any reasonable amount of time, then it’s virtually impossible that you haven’t handled logging in any way, since it’s one of the most essential parts of modern, “real life” app development. If you’re a .NET developer, then you’ve probably used some of the many famous logging frameworks available for use at this platform. Today’s …

JavaScript Logging Basic Tips

Gaege Root Developer Tips, Tricks & Resources

JavaScript has come a long way in recent years. Browsers are becoming more robust and machines are growing more powerful. Pair this with the recent development of Node.js for execution of JavaScript on servers, and you can understand why JavaScript has exploded in popularity. Developers continue to push the boundaries of what can be done with JavaScript, which leads to ever more …

How to Log to Console in PHP

Kim Sia Developer Tips, Tricks & Resources

PHP is one of the most popular server-side scripting languages for building web applications because it’s easy to use. No matter what you build, making it easy to log errors is key to ensuring a short code-test-learn feedback cycle. Because PHP was developed way before today’s modern browsers, it didn’t really have an easy way to log errors to the …

PHP Error Log Basics

Gaege Root Developer Tips, Tricks & Resources

When developing PHP applications, error logs tend to be underutilized due to their apparent complexity. The reality is that PHP error logs are extremely helpful, especially when configured and used properly. While there are advanced tricks to truly squeeze every last drop of utility out of error logs, this article will cover the basics of configuration and the most common …

How to Troubleshoot Ruby Applications

Eric Goebelbecker Developer Tips, Tricks & Resources

Troubleshooting is a critical skill for developers and DevOps. As our software grows more sophisticated, our problems do too. The cloud adds a new layer of complexity since we need to know how to find a problem that doesn’t occur locally, but has cropped up on a remote system. In this tutorial, we’ll look at how to troubleshoot Ruby applications. …

Apache Error Log Explained

Eric Goebelbecker Developer Tips, Tricks & Resources

Many online applications use a web server as the primary point of contact for their clients. At least 43% of those systems are running the Apache HTTP Server. If you’re responsible for one of those systems, you need to work with the Apache error log. Apache provides comprehensive logging via several different files, but the error log is the most important. You can even say …

Logging Levels 101

Carlos Schults Developer Tips, Tricks & Resources

If you’re a software developer, then you understand how vital application logging is in software development and a critical part of logging is something called logging levels. Log entries generally contain essential information—such as a timestamp, a message, and sometimes additional stuff like an exception’s stack trace. Those pieces of information are useful because they allow someone reading the log entry to …

PHP Error Log Guide: Configuration And Use Cases

Gaege Root Developer Tips, Tricks & Resources

When developing PHP applications, error logs are under-used because of their apparent complexity. PHP error logs are helpful, especially when configured and used properly. While there are advanced tricks to truly squeeze every last drop of utility out of error logs, this article will cover the basics of configuration and the most common use cases so you can get up …

Node.js Logging Tutorial

Phil Vuollet Developer Tips, Tricks & Resources

Logging is an important part of supporting the complete application life cycle. From creation to debugging to planning new features, logs support us all the way. By analyzing the data in the logs, we can glean insights, resolve bugs much quicker, and detect problems early as they happen. In this post, we will talk about the who, what, when, where, …

Ultimate Winston Logging Tutorial: Best Practices, Resources, and Tips

Lou Bichard Developer Tips, Tricks & Resources

Are you looking to get up and running with logging in Node.js? Do you want to understand best practices (and pitfalls) for structuring application logging in Node.js? If that’s what you’re looking for, you’re in the right place! For me, logging was always a somewhat mystical and frustrating idea. I could grasp the concept that you wanted to output information about …

Laravel Logging Tutorial

Kim Sia Developer Tips, Tricks & Resources

Regardless of what language and framework you use, proper logging is crucial to web development. Logging is key when it comes to debugging and performance monitoring. Knowing how to properly use logging frameworks is an essential part of creating high quality software that is easy to debug. In this article, I will provide in-depth coverage on Laravel, which is the …

ELMAH Is Dead. Get More Detailed Exceptions With Retrace

Phil Vuollet Developer Tips, Tricks & Resources, Stackify Product & Company Updates

For many years, ELMAH was the go-to logging utility for ASP.NET. It caught exceptions that came up through the IIS response pipeline and logged them along with contextual information. It also put a subpage on your site that you could visit to view logged exceptions. It was a great tool for catching, logging, and viewing unhandled exceptions for monolithic ASP.NET …

Microservice Logging: Challenges, Advantages, and Handling Failures

Simon Timms Developer Tips, Tricks & Resources

One of the major developments in software design and delivery over the last few years has been a movement away from monolith applications towards microservices. One of the sticking points I’ve seen on numerous microservice applications is logging. There are some unique challenges with microservice logging that need to be addressed. In this article, we’ll look at how we can …

Java Logs: 4 Types of Logs You Need to Know

Thorben Janssen Developer Tips, Tricks & Resources

Logging is an important topic in software development, especially if you need to analyze bugs and other unexpected events in your production environment. Implementing your logging often seems easy. But as you probably experienced yourself, logging is far more complex than it might seem. That’s why you can find lots of articles about it here on the blog. As an …

Java Logging Frameworks: log4j vs logback vs log4j2

Thorben Janssen Developer Tips, Tricks & Resources

If you ever had to analyze an issue in production, I’m sure you know how important it is to have good logging. Good logging requires three things: The log messages need to provide the required information to understand what the application does internally. Writing log messages has to be as efficient as possible so that it doesn’t affect the performance …

NLog vs log4net vs Serilog: Compare .NET Logging Frameworks

Simon Timms Developer Tips, Tricks & Resources

Logging information in .NET, or really in any production application, is invaluable. In many cases, developers don’t have direct access to the production environment to debug issues. Good quality logs are the difference between solving problems like Sherlock Holmes and stumbling upon solutions like Inspector Jacques Clouseau. As you can imagine, we’re pretty big on logging here at Stackify, and …