Updated LogOutputStream to mask passwords