Sparkles

that were shone when I got tempered!

Speedup the log4j logging in eclipse

with one comment

This is the method that I found to speedup the logging.

1. Go to Windows > Preferences

0

2. Go to Java > Editor > Templates in there and create a new template or select the Existing one to edit

1

3. Sample command

logger.info(“${enclosing_mathod}().${word_selection} : ” + ${word_selection}${});${cursor}

(Note : If you are copy paste this. Please replace the ” by typing double quotes. It will not added as double quotes.)

2

4. It’s Show-Time!!!

  • Type the variable you want to log
  • Select it.
  • Press Ctrl + Space
  • Type shortcut name you added or edited (eg: li) to select it from the drop down suggestions.
  • Hit enter and see what happens.
Advertisements

Written by Namal Fernando

August 14, 2013 at 12:03 am

Posted in Eclipse, log4j

Tagged with , ,

One Response

Subscribe to comments with RSS.

  1. Ajit Patil

    August 14, 2013 at 5:46 am


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

Ruth's Reflections

Contemplations from quakey quirky Christchurch

TED Blog

The TED Blog shares interesting news about TED, TED Talks video, the TED Prize and more.

Ziplok

Learn and discover simple things

Meihta Dwiguna Saputra's Knowledge Base

~In learning you will teach and in teaching you will (re)learn~

The Java Blog

Thoughts, tips and tricks about the Java programming language

Sparkles

that were shone when I got tempered!

%d bloggers like this: