What's the best way to log a message ?

Hi All,

I have to log some messages in my application.
I have noticed that it is advised to define a private static logger instance inside the class that logs messages.
Why ?
Isn’t it much better to access to Logger class in a static way like Logger.getLogger(Test.class,…)
So, what’s the best way to log messages ?
Cheers.

              Stefano