Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Configuring a Logging Profile in JBoss EAP

JBoss Enterprise Application Platform allows us to do more than simply deploy applications — we can also manage and maintain them during their lifecycle. Part of this is the ability to log what we need when we need it, which is where JBoss EAP logging profiles come in. Logging profiles allow us to write customized logging rules that we then attach to our applications as desired.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 20, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create the Logging Profile
    1. Access the JBoss EAP CLI:
    cd /opt/jboss-eap/
    sudo ./bin/jboss-cli.sh
    connect
    
    1. Create the appdebug logging profile:
    /subsystem=logging/logging-profile=appdebug:add
    
  2. Challenge

    Create the File Handler
    1. Create the file handler:
    /subsystem=logging/logging-profile=appdebug/file-handler=appdebug-handler:add(file={path=>"debug.log", "relative-to"=>"jboss.server.log.dir"})
    
    1. Set the log level for the handler:
    /subsystem=logging/logging-profile=appdebug/file-handler=appdebug-handler:write-attribute(name="level", value="TRACE")
    
  3. Challenge

    Create a Logger Category
    1. Add the logger category:
    /subsystem=logging/logging-profile=appdebug/logger=app.debug:add(level=DEBUG)
    
    1. Assign the handler to the category:
    /subsystem=logging/logging-profile=appdebug/logger=org.hibernate:add-handler(name="appdebug-handler")
    
  4. Challenge

    Set Logs to Format as JSON

    Ensure the logs will be formatted as JSON:

    /subsystem=logging/logging-profile=appdebug/json-formatter=NAME:add(pretty-print=true, exception-output-type=formatted)
    
  5. Challenge

    Add the Logger Profile to the Application
    1. Exit the CLI:
    exit
    
    1. Move into /home/cloud_user/kitchensink:
    cd ~/kitchensink
    
    1. Add a MANIFEST.MF file to the application:
    vim src/main/resources/META-INF/MANIFEST.MF
    
    Manifest-Version: 1.0
    Logging-Profile: appdebug
    
    1. Deploy the application:
    sudo mvn clean install wildfly:deploy
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight