[jboss-dev-forums] [JBoss AS 7 Development] - How to configure the logger to write to a specified location

ftom2 do-not-reply at jboss.com
Thu Mar 29 06:20:56 EDT 2012


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&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120329/45fc201c/attachment.html 


More information about the jboss-dev-forums mailing list