logs to stdout and initializes at the right time