Better practices in logger
Better practices in logger

- Don't define functions in loops. Seems to have been working fine, but better
  avoided.
- Avoid `arguments.callee`, which just refers to the function you're sitting in.
  It's expensive and less descriptive.

Singly/hallway,Singly/hallway