Updated Log.php by xuruiqi