make sure logs work inside aten/c10 namespaces as well (#37018)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37018
Differential Revision: D21167933
Pulled By: Krovatkin
fbshipit-source-id: b63f890c19b9887d5709b308ef691f5061cd27b8