Add logger to Core/X.php