direct.directnotify.Logger

How do I use this?
I don’t understand it at all.

You create an instance of it, passing a filename like “log” to the constructor, and call log(“your message”) when you want to log something to the file.

Like this:

from direct.directnotify.Logger import Logger

log = Logger("mylog")
log.log("message1")
log.log("message2")

After that, you’ll find a file named something like mylog.09-27-2013-09-40-46 in the same directory, containing something like this:

00:00:00:01: message1
00:00:00:01: message2

I’m not sure why you would use it though. If you wanted logging, then it’s trivial to implement this yourself, or use the more powerful DirectNotify interface.