Use Inhertiance instead of extra variable for file/stdout logging