Improved Logger class, avoids internal frame hack to guess names.