title: Windows Services Not Logging To Event Log
body: <p>I have a windows service that fails to start under some circumstances. When it fails to start the sequence of events suggest that my .NET code in the service has probably run, but no event log messages appear.</p>
  
  <p>Event log messages show up when the service starts properly.</p>
  
  <p>How does the event log work? And how does the windows service manager work?</p>
  
  <p>If a service times out (which is what happens) is it possible that the event log messages associated with that service would be trashed?</p>
  
  <p>If a service times out does that mean it has called my .NET code at all? My startup method calls a background thread so I don't understand why the service would time out.</p>
  
  <p>Doesn't really add up.</p>