added file logging

Signed-off-by: dvorkinista <villain@noironetworks.com>