If it's Worth Logging it's Worth Time-stamping

I know this is old ground but it seems to come up a lot and annoy the arse off me, if you are going to log something then please ensure it has:

  • A date and time...
  • ...that is easy to sort
  • The name of the application that spawned the something you are logging
  • The fully qualified name of the machine it is from

If you can’t produce at least those details then what use do you expect the logs to be when someone tries to debug using them.