[jboss-dev-forums] [JBoss AS 7 Development] - Configuration for server.log file in Jboss 7.1.1

peter binh do-not-reply at jboss.com
Wed Aug 7 05:07:50 EDT 2013


peter binh [https://community.jboss.org/people/hondacodon] created the discussion

"Configuration for server.log file in Jboss 7.1.1"

To view the discussion, visit: https://community.jboss.org/message/831727#831727

--------------------------------------------------------------
hi all,

Currently, I using the Jboss 7.1.1 but I do not know how to configura the size for server.log file for it. I expect that when the size of server.log file is exceed 10MB, it will split to other file and the maximum of files is 10. 

I tried to configure for the configuration in standalone.xml file but it not work

[Code] 

<periodic-rotating-file-handler name="FILE">
                <formatter>
                    <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %C.%M [%c] (%t) %s%E%n"/>
                </formatter>
                <file relative-to="jboss.server.log.dir" path="server.log"/>
                <suffix value=".yyyy-MM-dd"/>
               <rotate-size value="1000k"/>
                <max-backup-index value="20"/>
                <append value="true"/>
</periodic-rotating-file-handler>


[/Code]

What is the max size of the server.log ?

One more thing, I defined a user handler but the log is not written properly  :(
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/831727#831727]

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/20130807/aec5226d/attachment.html 


More information about the jboss-dev-forums mailing list