advanced logging in the above diagram the logger has been configured to send all log messages to four different handlers which allow log message to be written to the consoleto web server to file and to an email service such behaviour may be required becausethe web server will allow developers access to web interface that allows them to see the log files even if they do not have permission to access production server the log file ensures that all the log data is permanently stored in file within the file store an email message may be sent to notification system so that someone will be notified that there is an issue to be investigated the console may still be available to the system administrators who may wish to look at the log messages generated the python logging framework comes with several different handlers as suggested above and listed belowlogging stream handler sends messages to outputs such as stdoutstderr etc logging filehandler sends log messages to files there are several varieties of file handler in addition to the basic filehandlerthese include the logging handlers rotatingfilehandler (which will rotate log files based on maximum file sizeand logging handlers timerotatingfilehandler (which rotates the log file at specified time intervals dailylogging handlers sockethandler which sends messages to tcp/ip socket where it can be received by tcp server logging handlers smtphandler that sends messages by the smtp (simple mail transfer protocolto email server logging handlers sysloghandler that sends log messages to unix syslog program