How to implement logging in vaadin ?

I want to implement logging and have to auto generate the log file in the web application which is developed using vaadin. Can I have any sample code regarding the above ?

For serverside logging you can use just any of the java logging frameworks available (And there are plenty of them)

I would suggest SLF4J as you can let the users of your app configure whatever back-end API they prefer.