Log to file
Return the right value from system and.