Logging initialization functions