Re-added accidentally lost functionality for root-only logging