The recording of activity through logging has three components:
- The Logger: This stores the message that needs to be logged into the logging framework by capturing specific metadata.
- The Formatter: Upon the storage of the error message, the formatter is then approached to process it for output, usually by converting the binary object of the message into string representation.
- The Handler: Its function is to post the message effectively according to a specific structure or format. This can involve representing the data in the form of a database table, email, socket, or bitbucket.