Trying to log modules

I have been searching around, but haven’t yet found anything useful about logging modules. The reason I feel it should be possible is because of the thread about C modules on these forums.