use global config instead of passing to depreciation warning function as argument
abstract out logging from depreciation warning function and delegate
put globals back into args and turn debugging default off for now
out put the domain to logger. helped me isolate an error I think