Apache log4j in play framework
I'm not exactly sure what you mean with coding pattern, but there are some things that strike me as odd:


you only log empty messages ... in some of the cases encoding the message in the logger name. This certainly isn't the way log4j is intended to be used.
When ever you call this method basically the same Appender is created added and removed again. This again is a strange way to use log4j. And I'm not even sure what will happen when two threads call this method at the same time. 
You are setting the ConsoleAppender and the Pattern over and over again. This at least is superfluous, and might actually be harmful.
The naming is ... suboptimal ... You have two loggers one, is missing a g in its name, the other is abbreviated. None really tells the reader what these loggers are about. 
You never ever actually log with loger


So if this doesn't depend on some weird side effect this logs one empty String when it is called and two empty Strings when creating/adding/removing an Appender throws and exception. If this is really what this is supposed to do, it better made it clear in its names and comments.