Logging on startup

Does logging, including login that the application is starting, begin on startup or does it start some time after? If so is this documented anywhere?

It logs immediately on startup, there should be no delay.