Only configure logging if we're being run as a script