Append message to JBoss Console using jboss-log4j.xml

Posted by Random Joe on Stack Overflow See other posts from Stack Overflow or by Random Joe
Published on 2010-06-14T09:20:49Z Indexed on 2010/06/14 9:32 UTC
Read the original article Hit count: 275

Filed under:
|
|

I'm unable to append messages from my application to the JBoss console. The following are the changes that I made to the jboss-log4j.xml configuration file:

<category name="com.tricubes">        
  <priority value="INFO"/>
  <appender-ref ref="CONSOLE"/>
</category>

Here is my code:

public class OneToOneValidation2 {

private static final Logger logger = Logger.getLogger("com.tricubes");

public boolean validate(byte[] fpImage, byte[] fpTemplate, String desc, String ticket) {
    ...
        logger.info("BES INFO: SOCKET MSG SENT " + intToByteArray(x));            

    ...
    return b;
}

}

What am I missing?

TIA!

© Stack Overflow or respective owner

Related posts about jboss

Related posts about console