1. A method for logging errors that arise while moving a workload partition of an operating system from a source machine to a destination machine, the method comprising: halting processes executing in the workload partition; determining state information of the processes, wherein the determining is performed by a first group of one or more modules residing on the source machine in memory space assigned to a kernel of the operating system; detecting, based on the state information, a first error affecting movement of the workload partition from the source machine to the destination machine, wherein the detecting is performed by one or more of the first group of modules; writing a first message into a log buffer stored on the source machine in the memory space assigned to the kernel, wherein the first message describes the first error, and wherein the writing the first message occurs via a call, by one or more of the first group of modules, to an error logging framework residing in the memory space assigned to the kernel; detecting a second error affecting the movement of the workload partition from the source machine to the destination machine, wherein the detecting the second error is performed by a second group of one or more modules residing on the source machine in memory space assigned to user programs; and writing a second message into the log buffer, wherein the second message describes the second error, and wherein the writing of the second message occurring via a call by the second group of modules to the error logging framework.