The question is simple, which is meant by Handler . I know that in English Handler is a kind of Handler . But I can't understand the concept behind it, if it follows some design pattern or something like that. Whether it's synchronous or asynchronous, etc.
My question arises from using Python logging . In which several Handlers can be configured to send the logs to different sites.
'handlers': {
'wsgi': {
'class': 'logging.StreamHandler',
'stream': 'ext://flask.logging.wsgi_errors_stream',
'formatter': 'default'
},
'info_file_handler': {
'level': 'INFO',
'class': 'logging.handlers.RotatingFileHandler',
'filename': 'logs/info.log',
'formatter': 'default',
'maxBytes': 485760,
'backupCount': 5,
'encoding': 'utf8'
}
If someone has a good explanation and example, welcome. There is no tag on handler (and I can't create it due to low reputation).