log4j- writing method names- use capital M and not small m


capitalization makes all the difference, you will still need small m though.

Amplify’d from www.theserverside.com
Thanks friend.

As you indicated, the %M pattern as indicated in the log4j manual works out.

Thanks for your help.

The point that i observed is that,

%m -message
%M – method name
%c- category
%C- Class name

Read more at www.theserverside.com

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s