few java snippets
logger name optional