How to create log files using log4j2 in specific directory

Solution Verified - Updated -

Issue

  • How to update application logs in a specific directory?
  • How to create application logs with a date format for directory?
  • Creating application logs with date format using log4j2.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)

    • 7.x
  • Apache Log4J2 application logging.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content