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

Function get_logger

core/log.py:25–38  ·  view source on GitHub ↗

Creates the logger with the logger name and returns it Args: logger_name

(logger_name)

Source from the content-addressed store, hash-verified

23
24
25def get_logger(logger_name):
26 """
27 Creates the logger with the logger name and returns it
28
29 Args:
30 logger_name
31 """
32 logger = logging.getLogger(logger_name)
33 logger.setLevel(logging.DEBUG) # highest level
34 logger.addHandler(get_file_handler())
35 # with this pattern, it's rarely necessary to propagate error upto parent
36 logger.propagate = False
37
38 return logger

Callers 1

alert.pyFile · 0.90

Calls 1

get_file_handlerFunction · 0.85

Tested by

no test coverage detected