JBoss Community

Configuration for server.log file in Jboss 7.1.1

created by peter binh in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community