Fix logger stream creation