-
1. Re: Unable to locate physical location of log directory
kuldeep11 Apr 14, 2014 6:17 AM (in response to lalitshaktawat)Check your boot.log for paramtere "jboss.server.log.dir" after this you can check server.log in that location.
Thanks!!
-
2. Re: Unable to locate physical location of log directory
lalitshaktawat Apr 14, 2014 7:59 AM (in response to lalitshaktawat)ok Kudeep.
Now I am confused with jboss.server.log.dir relative-path.
Can you please explain me what it is? If it is a parameter so can I used anything ?
Please explain it.
Thanks
-
3. Re: Unable to locate physical location of log directory
kuldeep11 Apr 14, 2014 8:32 AM (in response to lalitshaktawat)Now I am confused with jboss.server.log.dir relative-path.
Can you please explain me what it is?
Relative-Path means that It will do all things with respect to some value assinged to variable to whom it is referencing.
Here suppose "jboss.server.log.dir" variable has been to some path(/data/log), then your log file will get created in /data/log.
If it is a parameter so can I used anything ?
Please explain it.
Yes, this is a parameter and you can customize this to any existing path using below parameter during your jboss startup.
-Djboss.server.log.dir="Your custom Path"
Hope this helps you!!
Thanks!
-
4. Re: Unable to locate physical location of log directory
lalitshaktawat Apr 14, 2014 8:48 AM (in response to kuldeep11)ok I found that this is a Parameter. I used ./standalone.sh -Djboss.server.log.dir=/mylogfile/LOGDATA command. Server is starting after stopping it.
I could not found /mylogfile/LOGDATA path.
can I change jboss.server.log.dir to jboss.xyz.abc ?
Thanks
-
5. Re: Unable to locate physical location of log directory
kuldeep11 Apr 14, 2014 10:44 AM (in response to lalitshaktawat)Make sure that directory where you are going to keep your log file should exist.
e.g. in your case First create /mylogfile/LOGDATA directory and then launch below command for starting jboss instance.
./standalone.sh -Djboss.server.log.dir=/mylogfile/LOGDATA
cd /mylogfile/LOGDATA
$ ls
server.log
Thanks!
-
6. server.log.dir Parameter
lalitshaktawat Apr 15, 2014 1:03 AM (in response to kuldeep11)Hi Kuldeep
Ok I found that this is a Parameter / standard system parameter but can I change it? like server.abc.xyz
Thanks
-
7. Re: server.log.dir Parameter
kuldeep11 Apr 15, 2014 3:49 AM (in response to lalitshaktawat)Hi Lalit,
I didn't understand your question. Do you want to change log file name to server.abc.xyz?
Thanks!
-
8. Re: server.log.dir Parameter
lalitshaktawat Apr 15, 2014 3:52 AM (in response to kuldeep11)Hi Kuldeep
i want to change parameter name from server.log.dir to server.abc.xyz.
Lalit
-
9. Re: Unable to locate physical location of log directory
kuldeep11 Apr 15, 2014 4:29 AM (in response to lalitshaktawat)Hi Lalit,
I don't think that we can change this as these parameters are built-in and predefined.
Thanks!
-
10. Re: Unable to locate physical location of log directory
jaikiran Apr 15, 2014 4:36 AM (in response to lalitshaktawat)Lalit Shaktawat wrote:
You can just change that to:
<file path="${foo.bar}/server.log"/>
and then set the foo.bar system property, which can be done by passing -Dfoo.bar=/mylogfile/LOGDATA (for example) while starting the server.
-
11. Re: Unable to locate physical location of log directory
kuldeep11 Apr 15, 2014 6:23 AM (in response to jaikiran)Ah... Great.
Just checked that we can also defined our custom variable which can point to custom location.
thanks!
-
12. Re: Unable to locate physical location of log directory
lalitshaktawat Apr 15, 2014 6:31 AM (in response to kuldeep11)hi Kuldeep
I tried but it is showing an error. So I think we can't change it. Because this parameter is predefined. Location is "OK" working fine but parameter having some value so we can able to change the value of this parameter but not able to change Parameter.
But tried with server.com.dir that working fine. But not able to understand that what is going on. I found that server.com.dir is also a predefined parameter so that it was working on.
Lalit
-
13. Re: Unable to locate physical location of log directory
kuldeep11 Apr 15, 2014 7:57 AM (in response to lalitshaktawat)Please try as suggested by Jaikiran!