How to use Log4j2 in your WildFly applications

Log4j2 is the latest major release of the popular Logging Framework. In this tutorial we will learn how to include Log4j2 configuration file and use it in your deployments running on WildFly. Log4j2 borrows some concepts from the Logback framework, which can be assimilated to an improved version of the older Log4j release. According to … Read more

Create a Custom Camel logging handler for WildFly

A Custom logging handler allows you to define a custom destination for your WildFly / JBoss AS 7 server logging events. You would typically define a custom hanlder to log to a Socket, a Database, to a remote location or a JMS Queue. In this tutorial we will learn how to base your custom handler … Read more

5 Loggers in WildFly you should know about

in WildFly and JBoss EAP Loggers are used to log messages by defining a category generally consisting of a package name or a class name. In short, they can let you customize the logging events for a package or Class name. We will see 5 Loggers which I’ve found pretty useful in my work. org.jboss.remoting.remote … Read more

Use Camel to handle your WildFly logs

Many of you have heard about Camel rule based and mediation engine. On this tutorial we will show how to unleash its power to handle the logs from WildFly 9! First of all, if you need a quickstart tutorial about Camel here is an Hello World Camel quickstart In order to trigger Came routes, we will … Read more

Using a Logger for a specific application (EAP 6 and WildFly)

A common requirement for many applications is to use a specific logger to trace log events. In this recipe we will learn how to use Logging profiles to define a logger that can be activated at application level. This tutorial can be used with JBoss EAP 6.2 (and higher) and WildFly application server. Let’s start … Read more

Using Log4J with WildFly and JBoss EAP

Using log4j with WildFly / JBoss EAP is pretty simple and just requires some basic configuration steps. In this tutorial you will learn how to configure it in a simple application that will be deployed on WildFly. WildFly Log4j configuration Using Log4j with Wildfly is quite easy. Step #1: Include Log4j dependency in your pom.xml … Read more

How to read WildFly log files using the CLI

In this short tutorial we will learn how to inspect the WildFly log files from the Command Line Interface.  One interesting feature is the ability to display log files using the management instruments. Although log files are typically read and filtered using your operating system shell commands (such as tail or grep), the final release … Read more

Using Log4j with JBoss 6

To be honest I’m not a big fan of the release 6 of the application server. One of the major complaints is the logging area, which departed from log4j and switched to a native logging implementation which is however poorly documented. In this short tutorial we will show how to use log4j on JBoss AS … Read more

JBoss log4j configuration

This tutorial has been written for older versions of the application server (JBoss AS 4/5/6). A more recent tutorial about Log4j has been written here: Using Log4J with WildFly and JBoss EAP JBoss AS uses log4j as logging framework. This tutorial will show how to configure log4j service in your jBoss application server and also how … Read more