MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / get_file_handler

Function get_file_handler

core/log.py:16–22  ·  view source on GitHub ↗

Returns file handler for the log file

()

Source from the content-addressed store, hash-verified

14
15
16def get_file_handler():
17 """
18 Returns file handler for the log file
19 """
20 file_handler = RotatingFileHandler(LOG_FILE)
21 file_handler.setFormatter(FORMATTER)
22 return file_handler
23
24
25def get_logger(logger_name):

Callers 1

get_loggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected