Logger module

I haven't tested this module, but it's worth a shot.