Logging verbessert