Initialise logging earlier.