SrcCodes

Customize Logback Configuration for Log Optimization

4,153,406 hits in single day! Sounds like a really big number for many of us. I was surprised when I noticed this in Production ELK for the first time. I didn't expect that many hits for an application with only 5 microservices. That too for a Beta application

Logback using SLF4J Hello World Example

Logback is an increasingly popular logging framework intended as a successor to the popular log4j project. It is designed by the founder of log4j. Logback offers many advantages over log4j like faster, smaller memory footprint, automatic reloading of configuration files, automatic compression of archived log files, conditional processing of configuration

Send logs by Email Notification using Apache log4j SMTPAppender

It is always better to get notified as soon as any major issues / exceptions occurred in the Application, instead of manually going thorugh huge logs to find probable exception messages. Apache log4j provides out of the box log Appender (called SMTPAppender) to send email alerts for the log level configured

Configure Simple Logging Facade for Java (SLF4J) with log4j as underlying logging framework

Simple Logging Facade for Java (SLF4J) is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging etc.). This tutorial describes how to configure SLF4J with log4j as underlying logging framework. To use SLF4J, it is required to include 3 jars SLF4J API (slf4j-api-x.x.x.jar)

Hello World Example of Simple Logging Facade for Java or SLF4J

Simple Logging Facade for Java (SLF4J) is an abstraction of different logging frameworks (eg. log4j, java.util.logging, commons logging etc.). This gives the developer an opportunity to plug-in desired logging framework at deployment time without changing the code. To use SLF4J, it is required to include 3 jars SLF4J

SrcCodes © 2026