logging module has a ton
of features. For example, you can create a logger that automatically rotates files once they grow to a certain size. Or you can have logger with multiple handlers for different levels, e.g. so that you only have errors and warnings going to the screen but full output going to a file. You can use filters to pre-process the messages before they are output. You can even log across a network. logging is also thread-safe so you can use it from multiple threads without worrying about messages interleaving on one line. Check out the cookbook
in the docs for an overview of some the commonly used features.