The invention provides a method for error detection of multi-threaded software.
The method comprises executing an application which uses a logger that collects
log statements, collecting at least one log statement from at least one application
thread and storing the at least one log statement in memory, and allowing the collected
log statement to be persisted in case of an error in a production environment.