Logger class improved