addToLogger(name, value, logger = NULL)value is a function it is added to the list and is
accessible via .testLogger$name. If value
is a variable it is added to the local environment and is
therefore accessible iNULL, the object .testLogger is searched
in .GlobalEnv -- and an error is thrown if it does
not exist.logger is NULL.