add logging file support

use module logging instead of local class 'Logging'