Final version for logger service.
After unit test, It works fine.