In Jboss there is a default logging available, which can be implemented by modifying standaole.xml.
In Openshift when you ssh into your app using the below command
rhc ssh <app-name>
You will taken into your application where when you give ls
command you will see the list of files and folders, you can find jbossas folder change your working directory to that folder
cd jbossas
execute ls
command you will see list of folders where you will find standalone folder, change your working directory to this folder
cd standalone
again execute ls command you can see configuration folder, change your working directory to this
cd configuration
now if you execute ls
command you can see standalone.xml
, we need to edit this file, but editing here may not work because this standalone.xml
is a copy of the another file which is in the following folder .openshift/config/standalone.xml
. You can find this folder where you clone your git copy, Not in eclipse go to your working directory in window.
We need to edit this file and add our logging properties here. thats how it works