A Formatter is a class taking a LogRecord and converting it into a String. It is the one responsible for preparing the content to be sent to the backend. The idea is to separate the writing and formatting concerns, allowing you to reuse one part without having to create a new Handler.
Again, it is often bound to a particular Handler.