BeforeAdvancedLogging