Typically I prefer a slf4j backed by logback logger with tags/categories.
Some people definitely go for the AOP style logging. Again we can improve
this later.

Cheers,
Martijn


On 17 February 2014 19:37, Alex Theedom <notifications@github.com> wrote:

> In
> javacountdown-ee6/src/main/java/org/adoptopenjdk/javacountdown/control/MorphiaDatastore.java:
>
> > +	private static final String DATABASE_NAME 	= "jcountdown";	
> > +	private static final String HOST 			= "localhost";
> > +	private static final int PORT 				= 27017;
> > +
> > +	
> > +	@Produces
> > +	public DatastoreImpl getDatastore() {
> > +
> > +		logger.log(Level.FINE, "Enter MorphiaDatastore");
> > +		
> > +		MongoClient mongoClient = null;
> > +		
> > +		try {
> > +			mongoClient = new MongoClient(HOST, PORT);
> > +		} catch (UnknownHostException e) {
> > +			logger.log(Level.FINE, "Exception thrown while creating Mongo client: {0}", e.getMessage());
>
> We're using Java logging not log4j so ERROR not available. Besides I am
> not happy with this way of logging I think that it should be implemented as
> a cross cutting concern. What's your opinion?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/AdoptOpenJDK/javacountdown/pull/67/files#r9802272>
> .
>