Putting Swaraj's implementation of DataLogger here