Added logging init to new module.

Log directory is configurable.