single log call based on OS