Add logging function directory.
Refactoring.
Refactoring.