Jens timmerman fancylogger classname

fixed testcase for fancylogrecord in optimization mode + made making a logrecord not happen by default when a name is given