ftom2 [
https://community.jboss.org/people/ftom2] created the discussion
"How to configure the logger to write to a specified location"
To view the discussion, visit:
https://community.jboss.org/message/727148#727148
--------------------------------------------------------------
Hi,
I'm using Jboss 7.1.1 and i have the following logging configuration:
<size-rotating-file-handler name="ACEII">
<level name="DEBUG"/>
<formatter>
<pattern-formatter pattern="%z{utc}%d{dd/MM/yyyy HH:mm:ss,SSS}
%-5p [%c] %s%E%n"/>
</formatter>
<file path="c:\tmp\ACEII.log"/>
<rotate-size value="10M"/>
<max-backup-index value="10"/>
<append value="true"/>
</size-rotating-file-handler>
This is writing ,as expected, to the tmp folder. *The question is how do i define a non
absolute path?*
I tried using environemtn variables but with no success:
<file path="%MY_VAR%\ACEII.log"/>
i also tried it with the 'relative-to' property:
<file relative-to="%MY_VAR%" path="ACEII.log"/>
but again, with no success :(
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/727148#727148]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]