Configure and use pure java logger

If by any chance you need to user pure java logger, this is the easiest way to set up and use the java logger in your application.

Remembering that we have a considerable number of providers like log4jslf4jcommons-loggingjboss-logging, etc.

1.- Setup

logger1Config

2.- Use

static Logger logger = Logger.getLogger(AdWordsGetData.class.getName());

logger.log(Level.INFO, “Hello Log Init”);

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