-
1. Re: Need help in Jboss 6.4 Logging
jamezp Mar 15, 2017 11:33 AM (in response to unni9946)1 of 1 people found this helpfulFor the meaning of the pattern parts have a look at Chapter 14. The Logging Subsystem . The pattern you have looks correct for what you would like. Do you have an example that doesn't look like you would expect it to?
--
James R. Perkins
-
2. Re: Need help in Jboss 6.4 Logging
unni9946 Mar 20, 2017 2:17 AM (in response to jamezp)Hi James,
Thanks for your reply.
I have tested this and seems working fine.
<pattern-formatter pattern="%d %-5r %-5p [%c]
Still I have a confusion.
Its now coming like
2017-01-17 17:11:00,828 210023249 DEBUG [com.app.packager.Schedulemaster]
I want it to show like
2017-01-17 17:11:00,828 210023249 DEBUG[Schedulemaster]
Can you please guide/
-
3. Re: Need help in Jboss 6.4 Logging
jamezp Mar 20, 2017 11:39 AM (in response to unni9946)1 of 1 people found this helpfulI guess it's not documented there, but if you only want the last part of the category you just need to use %c{1} so in your pattern it would be:
%d %-5r %-5p [%c{1}]
--
James R. Perkins
-
4. Re: Need help in Jboss 6.4 Logging
unni9946 Mar 21, 2017 2:20 AM (in response to jamezp)Thats perfect. Thanks a lot !