Custom logging info for deployed application on jboss?

Using some sort of aspect/filter/proxy you can assign key-value pairs to special thread-local MDC object provided by Log4J. Entries from this map can be retrieved and appended to every logging statement automatically.

Using some sort of aspect/filter/proxy you can assign key-value pairs to special thread-local MDC object provided by Log4J. Entries from this map can be retrieved and appended to every logging statement automatically. This mechanism, since it is local to the running thread, is very often used to display current user name/session id in every logging statement occurring in a given thread, which is very handy.

The solution for seam application is that you need to extend the saem built in LoggingFilter and set the precedence of this filter to Install. APPLICATION, there in that filter you have the acces to MDC and you simply put other parameters in the MDC map ant then you call tihis parameters in the jboss-log4j. Xml conf file on jboss server.

The parametes shoud be referenced in the ConversionPattern param for example the patern must be %d{ABSOLUTE} %-5p %c{1} %X{url} - %X{username} %m%n", where %X{username} and %X{url} are parameters previously saved in MDC map – simonC Aug 3 at 17:36.

JBoss uses a unified classloader by default, to enable application specific logging you'll want to enable classloader isolation with jboss-classloading. Xml in the META-INF or WEB-INF folder. After enabling classloader isolation, you can use log4j.

Xml to configure how you want the logs to work. See wiki.apache.org/logging-log4j/Log4jXmlFo....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions